-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 기획자 포트폴리오가 보이지 않는 문제 해결 #207
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,16 @@ 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> | ||
<div className="flex gap-4"> | ||
<div className="flex-1 flex flex-col"> | ||
<Txt typography="h6">링크</Txt> | ||
<Txt typography="h6">링크(개발자)</Txt> | ||
{portfolio.map((url: string, index: number) => { | ||
return ( | ||
<Link href={url} target="_blank" key={index}> | ||
|
@@ -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) => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 해당 부분은 타입추론이 되는 부분이라고 생각이 듭니다! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 레거시가 applicantDataFinder를 사용하는데, 이 함수가 any를 반환하고 있어서 일단 기존 코드 스타일 그대로 따라갔습니다 ㅠ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 하하... 죄송합니다..... 레거시를 남겨두었네요 ㅠㅠ |
||
return ( | ||
<Link href={url} target="_blank" key={index}> | ||
<Txt className="break-all">{url}</Txt> | ||
</Link> | ||
); | ||
})} | ||
</div> | ||
)} | ||
</div> | ||
</> | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
링크는 개발자 뿐만 아니라 디자이너, 기획자도 작성할 수 있는데 개발자라는 단어를 넣은 이유가 궁금합니다 !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 그러네요 제가 수정하면서 착각했습니다 체크 감사합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
64047a5