File tree Expand file tree Collapse file tree
study/group/application/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,22 @@ export default function ProfileCard(props: ProfileCardProps) {
7070 </ p >
7171 </ div >
7272 </ div >
73- < p className = "font-designer-16r text-text-default" > { applicant . answer } </ p >
73+ { applicant . interviewPost . map ( ( q ) => {
74+ const matchedAnswer = applicant . answer . find ( ( a ) => a . id === q . id ) ;
75+
76+ return (
77+ < div key = { q . id } className = "mb-4" >
78+ < p className = "font-designer-16b text-text-default" >
79+ { q . id } . { q . question }
80+ </ p >
81+
82+ < p className = "font-designer-16r text-text-default" >
83+ { matchedAnswer ?. answer ?? '—' }
84+ </ p >
85+ </ div >
86+ ) ;
87+ } ) }
88+
7489 < div className = "flex w-full justify-end gap-100" >
7590 < Button
7691 size = "medium"
Original file line number Diff line number Diff line change @@ -9,12 +9,13 @@ export interface GroupStudyApply {
99 progressScore : number ;
1010 role : ApplyRole ;
1111 lastAccessed : string ;
12- answer : string [ ] ;
12+ answer : { id : number ; answer : string } [ ] ;
1313 status : ApplyStatus ;
1414 processedAt : string | null ;
1515 reason : string | null ;
1616 createdAt : string ;
1717 updatedAt : string ;
18+ interviewPost : { id : number ; question : string } [ ] ;
1819}
1920
2021export interface Applicant {
You can’t perform that action at this time.
0 commit comments