Skip to content

Commit

Permalink
feat: 탐색페이지 NoSignature 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
dydals3440 committed Feb 18, 2024
1 parent 75e230e commit 3bfdc27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/explore/SignatureSearchSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useNavigate } from 'react-router-dom';

import Preview from './Preview';
import * as S from './SignatureSearchSlider.style';
import NoSignature from '@/pages/signature/main/NoSignature';

const SignatureSearchSlider = ({ data, type, searchTerm }) => {
const navigate = useNavigate();
Expand All @@ -17,8 +18,8 @@ const SignatureSearchSlider = ({ data, type, searchTerm }) => {
<S.PreviewContainer>
{data?.length === 0 && (
<S.EmptyContainer>
{type === 'hot' && <h3>시그니처를 작성해주세요~!</h3>}
{type === 'new' && <h3>시그니처를 작성해주세요~!</h3>}
{type === 'hot' && <NoSignature />}
{type === 'new' && <NoSignature />}
</S.EmptyContainer>
)}
{data === null ? (
Expand Down
2 changes: 0 additions & 2 deletions src/pages/signature/main/NoSignature.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { useNavigate } from 'react-router-dom';
import * as S from './NoSignature.style';
import bookImg from '/images/bookImg.svg';

//내 시그니처 없으면 띄우는 페이지
export default function NoSignature() {
const navigate = useNavigate();
return (
<S.PageContainer>
<S.ContentContainer>
Expand Down

0 comments on commit 3bfdc27

Please sign in to comment.