Skip to content

Commit a0df2d0

Browse files
committed
feat: 스터디 신청자 페이지 수정 완료
1 parent f3d1cb0 commit a0df2d0

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

src/features/my-page/ui/profile-card.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

src/features/study/group/application/api/type.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

2021
export interface Applicant {

0 commit comments

Comments
 (0)