-
Notifications
You must be signed in to change notification settings - Fork 2
LC-2459-feat-챌린지 대시보드 미션, 콘텐츠 버튼 수정 #1892
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
base: main
Are you sure you want to change the base?
The head ref may contain hidden characters: "LC-2459-user-\uB300\uC2DC\uBCF4\uB4DC-\uBC84\uD2BC-\uC218\uC815"
Changes from all commits
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 |
|---|---|---|
|
|
@@ -96,7 +96,7 @@ const MissionGuideRegularSection = ({ | |
| <MissionFileLink | ||
| key={missionData?.missionInfo?.templateLink} | ||
| title="미션 템플릿" | ||
| fileName={'미션 템플릿'} | ||
| fileName={'미션 템플릿 확인하기'} | ||
| disabled={false} | ||
| onClick={() => { | ||
| window.open( | ||
|
|
@@ -112,7 +112,7 @@ const MissionGuideRegularSection = ({ | |
| <MissionFileLink | ||
| key={content.id || index} | ||
| title="필수 콘텐츠" | ||
| fileName={content.title || '필수 콘텐츠'} | ||
| fileName={'필수 콘텐츠 확인하기'} | ||
| disabled={false} | ||
| onClick={() => { | ||
| window.open(content.link || '#', '_blank'); | ||
|
|
@@ -128,7 +128,7 @@ const MissionGuideRegularSection = ({ | |
| <MissionFileLink | ||
| key={content.id || index} | ||
| title={index === 0 ? '추가 콘텐츠' : ''} | ||
| fileName={content.title ?? '추가 콘텐츠'} | ||
| fileName={'추가 콘텐츠 확인하기'} | ||
|
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. |
||
| disabled={false} | ||
| onClick={() => { | ||
| window.open(content.link || '#', '_blank'); | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -100,7 +100,7 @@ const MissionGuideZeroSection = ({ | |||||
| (content, index) => ( | ||||||
| <MissionFileLink | ||||||
| key={content.id || index} | ||||||
| fileName={content.title || ''} | ||||||
| fileName={'필수 콘텐츠 확인하기'} | ||||||
|
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.
Suggested change
|
||||||
| title={index === 0 ? '필수 콘텐츠' : ''} | ||||||
| disabled={false} | ||||||
| onClick={() => { | ||||||
|
|
||||||
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.
fileName을 '필수 콘텐츠 확인하기'라는 정적 문자열로 변경하면,essentialContentsList에 여러 항목이 있을 때 각 링크를 구별할 수 없는 문제가 발생합니다. 예를 들어, 두 개의 다른 필수 콘텐츠가 모두 '필수 콘텐츠 확인하기'라는 버튼으로 표시되어 사용자에게 혼란을 줄 수 있습니다. 이전처럼 각 콘텐츠의 고유한title을 사용하도록 되돌리는 것을 권장합니다. 만약 "확인하기" 문구를 포함해야 한다면,fileName={content.title ?${content.title} 확인하기: '필수 콘텐츠 확인하기'}와 같이 동적으로 구성하는 방법을 고려해볼 수 있습니다.