Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const MissionGuideRegularSection = ({
<MissionFileLink
key={missionData?.missionInfo?.templateLink}
title="미션 템플릿"
fileName={'미션 템플릿'}
fileName={'미션 템플릿 확인하기'}
disabled={false}
onClick={() => {
window.open(
Expand All @@ -112,7 +112,7 @@ const MissionGuideRegularSection = ({
<MissionFileLink
key={content.id || index}
title="필수 콘텐츠"
fileName={content.title || '필수 콘텐츠'}
fileName={'필수 콘텐츠 확인하기'}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

fileName을 '필수 콘텐츠 확인하기'라는 정적 문자열로 변경하면, essentialContentsList에 여러 항목이 있을 때 각 링크를 구별할 수 없는 문제가 발생합니다. 예를 들어, 두 개의 다른 필수 콘텐츠가 모두 '필수 콘텐츠 확인하기'라는 버튼으로 표시되어 사용자에게 혼란을 줄 수 있습니다. 이전처럼 각 콘텐츠의 고유한 title을 사용하도록 되돌리는 것을 권장합니다. 만약 "확인하기" 문구를 포함해야 한다면, fileName={content.title ? ${content.title} 확인하기 : '필수 콘텐츠 확인하기'}와 같이 동적으로 구성하는 방법을 고려해볼 수 있습니다.

Suggested change
fileName={'필수 콘텐츠 확인하기'}
fileName={content.title || '필수 콘텐츠'}

disabled={false}
onClick={() => {
window.open(content.link || '#', '_blank');
Expand All @@ -128,7 +128,7 @@ const MissionGuideRegularSection = ({
<MissionFileLink
key={content.id || index}
title={index === 0 ? '추가 콘텐츠' : ''}
fileName={content.title ?? '추가 콘텐츠'}
fileName={'추가 콘텐츠 확인하기'}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

'필수 콘텐츠'와 마찬가지로 additionalContentsListfileName을 '추가 콘텐츠 확인하기'라는 정적 문자열로 변경하면, 여러 항목이 있을 때 각 링크를 구별하기 어렵습니다. 각 콘텐츠의 고유한 title을 사용하도록 되돌리는 것이 좋습니다.

Suggested change
fileName={'추가 콘텐츠 확인하기'}
fileName={content.title ?? '추가 콘텐츠'}

disabled={false}
onClick={() => {
window.open(content.link || '#', '_blank');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const MissionGuideZeroSection = ({
(content, index) => (
<MissionFileLink
key={content.id || index}
fileName={content.title || ''}
fileName={'필수 콘텐츠 확인하기'}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

fileName을 '필수 콘텐츠 확인하기'라는 정적 문자열로 변경하면, essentialContentsList에 여러 항목이 있을 때 각 링크를 구별할 수 없는 문제가 발생합니다. 이전 구현(content.title || '')에서 빈 문자열이 표시되는 것이 문제였다면, content.title || '필수 콘텐츠'와 같이 적절한 대체 텍스트를 제공하면서 각 콘텐츠의 고유한 제목을 유지하는 것이 좋습니다.

Suggested change
fileName={'필수 콘텐츠 확인하기'}
fileName={content.title || '필수 콘텐츠'}

title={index === 0 ? '필수 콘텐츠' : ''}
disabled={false}
onClick={() => {
Expand Down