Skip to content

Commit

Permalink
feat: 탐색페이지 data 없을떄 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
dydals3440 committed Feb 18, 2024
1 parent ae6bb0c commit 75e230e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/explore/SignatureSearchSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ const SignatureSearchSlider = ({ data, type, searchTerm }) => {
<S.Title>"{searchTerm}" 에 관한 시그니처⭐</S.Title>
)}
<S.PreviewContainer>
{data?.length === 0 && (
<S.EmptyContainer>
{type === 'hot' && <h3>시그니처를 작성해주세요~!</h3>}
{type === 'new' && <h3>시그니처를 작성해주세요~!</h3>}
</S.EmptyContainer>
)}
{data === null ? (
<S.EmptyContainer>
<S.Text>로그인 후</S.Text>
Expand Down

0 comments on commit 75e230e

Please sign in to comment.