feat: show match requirements of people in detail panel

This commit is contained in:
2025-11-24 02:24:28 +08:00
parent c923244a68
commit b1fb054714
2 changed files with 13 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ export interface People {
height?: number;
marital_status?: string;
created_at?: number;
match_requirement?: string;
[key: string]: any;
cover?: string;
}

View File

@@ -34,6 +34,7 @@ function transformPeoples(list: People[] = []): Resource[] {
contact: person.contact || '',
cover: person.cover || '',
created_at: person.created_at,
match_requirement: person.match_requirement,
}));
}
@@ -1058,6 +1059,17 @@ const ResourceList: React.FC<Props> = ({ inputOpen = false, onCloseInput, contai
</div>
)}
<div style={{ marginTop: '12px' }}>
<Typography.Title level={5} style={{ color: 'var(--text-primary)', display: 'flex', alignItems: 'center', gap: 8 }}>
<span></span>
</Typography.Title>
{record.match_requirement ? (
<div>{record.match_requirement}</div>
) : (
<div style={{ color: '#9ca3af' }}></div>
)}
</div>
<div style={{ borderTop: '1px solid #f0f0f0', margin: '12px 0' }} />
<div>