File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed
src/pages/Home/components Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -45,18 +45,22 @@ const ShowDraftModal = ({ onClose }: ShowDraftModalProps) => {
4545 < p className = "caption-r text-black" > 로그아웃 시 임시 저장된 편지는 사라집니다</ p >
4646 </ div >
4747 < div className = "mt-6 flex max-h-60 min-h-auto w-[251px] flex-col gap-[10px] overflow-y-scroll [&::-webkit-scrollbar]:hidden" >
48- { draftLetters . map ( ( draft ) => (
49- < div
50- className = "text-gray-80 body-m flex h-10 w-full items-center justify-between gap-1 rounded-lg bg-white p-3"
51- key = { draft . letterId }
52- // onClick={() => handleNavigation(draft.letterId)}
53- >
54- < p className = "truncate" > { draft . title } </ p >
55- < div className = "text-gray-20" >
56- < DeleteOutlineRoundedIcon />
48+ { draftLetters . length > 0 ? (
49+ draftLetters . map ( ( draft ) => (
50+ < div
51+ className = "text-gray-80 body-m flex h-10 w-full items-center justify-between gap-1 rounded-lg bg-white p-3"
52+ key = { draft . letterId }
53+ // onClick={() => handleNavigation(draft.letterId)}
54+ >
55+ < p className = "truncate" > { draft . title } </ p >
56+ < div className = "text-gray-20" >
57+ < DeleteOutlineRoundedIcon />
58+ </ div >
5759 </ div >
58- </ div >
59- ) ) }
60+ ) )
61+ ) : (
62+ < p className = "caption-m text-center text-gray-50" > 작성 중인 편지가 없어요</ p >
63+ ) }
6064 </ div >
6165 </ ModalBackgroundWrapper >
6266 </ div >
You can’t perform that action at this time.
0 commit comments