Skip to content

Commit

Permalink
style: 모달창 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chae-won-shin committed Dec 16, 2024
1 parent 909a655 commit 0191a5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/admin/components/docs/ApplyDetailModal.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const ModalBackdrop = styled.div`
export const ModalWrapper = styled.div`
width: 90%;
height: 85vh;
min-width: 900px;
max-width: 1100px;
min-height: 500px;
${displayCenter}
Expand Down
9 changes: 5 additions & 4 deletions src/pages/admin/components/docs/ApplyDetailModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ const ApplyDetailModal = ({
};

const trackData = detail ? getQuestionsByTrack(detail.track) : null;
const emptyAnswer = '해당 질문에 대한 답변이 작성되지 않았습니다.';

return (
<ModalBackdrop>
Expand Down Expand Up @@ -177,7 +178,7 @@ const ApplyDetailModal = ({
<SelfIntroduce>
{detail.answers.length > 0
? `${detail.answers[0].answer}`
: `${trackData.Question1.main}란이 비어있습니다.`}
: emptyAnswer}
</SelfIntroduce>
<DividingLine />

Expand All @@ -187,7 +188,7 @@ const ApplyDetailModal = ({
<SelfIntroduce>
{detail.answers.length > 1
? `${detail.answers[1].answer}`
: `${trackData.Question2.main}란이 비어있습니다.`}
: emptyAnswer}
</SelfIntroduce>
<DividingLine />

Expand All @@ -197,7 +198,7 @@ const ApplyDetailModal = ({
<SelfIntroduce>
{detail.answers.length > 2
? `${detail.answers[2].answer}`
: `${trackData.Question3.main}란이 비어있습니다.`}
: emptyAnswer}
</SelfIntroduce>
<DividingLine />

Expand All @@ -207,7 +208,7 @@ const ApplyDetailModal = ({
<SelfIntroduce>
{detail.answers.length > 3
? `${detail.answers[3].answer}`
: `${trackData.Question4.main}란이 비어있습니다.`}
: emptyAnswer}
</SelfIntroduce>
<DividingLine />
</IntroContainer>
Expand Down

0 comments on commit 0191a5b

Please sign in to comment.