File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
src/pages/Home/components Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,19 @@ const ShowShareAccessModal = ({ onClose }: ShowShareAccessModalProps) => {
5454 </ p >
5555 </ div >
5656 < div className = "mt-6 flex max-h-60 min-h-auto w-[251px] flex-col gap-[10px] overflow-y-scroll [&::-webkit-scrollbar]:hidden" >
57- { shareProposals . map ( ( proposal ) => (
58- < button
59- className = "text-gray-80 body-m flex h-10 w-full items-center justify-between gap-1 rounded-lg bg-white p-3"
60- key = { proposal . shareProposalId }
61- onClick = { ( ) => handleNavigation ( proposal . shareProposalId ) }
62- >
63- < p > { proposal . requesterZipCode } 님의 공유 요청</ p >
64- </ button >
65- ) ) }
57+ { shareProposals . length > 0 ? (
58+ shareProposals . map ( ( proposal ) => (
59+ < button
60+ className = "text-gray-80 body-m flex h-10 w-full items-center justify-between gap-1 rounded-lg bg-white p-3"
61+ key = { proposal . shareProposalId }
62+ onClick = { ( ) => handleNavigation ( proposal . shareProposalId ) }
63+ >
64+ < p > { proposal . requesterZipCode } 님의 공유 요청</ p >
65+ </ button >
66+ ) )
67+ ) : (
68+ < p className = "caption-m text-center text-gray-50" > 새로운 공유 요청이 없어요</ p >
69+ ) }
6670 </ div >
6771 </ ModalBackgroundWrapper >
6872 </ div >
You can’t perform that action at this time.
0 commit comments