Skip to content

Commit

Permalink
fix: 기획자 포트폴리오가 보이지 않는 문제 해결 (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
2yunseong authored Sep 17, 2024
2 parents abe963e + 64047a5 commit 02eae46
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions frontend/components/applicant/applicantNode/Portfolio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const Portfolio = ({ data }: PortfolioProps) => {
.split(regex)
.map((url: string) => url.trim());

const fileUrlForPlanner = applicantDataFinder(data, "fileUrlforPlanner")
.split(regex)
.map((url: string) => url.trim());

return (
<>
<Txt typography="h4">포트폴리오</Txt>
Expand All @@ -42,6 +46,18 @@ const Portfolio = ({ data }: PortfolioProps) => {
);
})}
</div>
{!!fileUrlForPlanner && (
<div className="flex-1 flex flex-col">
<Txt typography="h6">이번 학기 프로젝트 기획서</Txt>
{fileUrlForPlanner.map((url: string, index: number) => {
return (
<Link href={url} target="_blank" key={index}>
<Txt className="break-all">{url}</Txt>
</Link>
);
})}
</div>
)}
</div>
</>
);
Expand Down

0 comments on commit 02eae46

Please sign in to comment.