Skip to content

Commit 0c08208

Browse files
committed
design: 편지 공유 요청 수신 조회 모달에서 데이터가 없을 때 대체 텍스트 추가
1 parent 3a139fe commit 0c08208

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/pages/Home/components/ShowShareAccessModal.tsx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)