Skip to content

Commit

Permalink
✨ Feat: 로고 누르면 메인 화면으로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
suyeon1218 committed Sep 27, 2023
1 parent 6cdc9da commit 765433c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/layout/components/PathNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useNavigate } from 'react-router-dom';
import { Button } from '@components/Button';
import { Icon } from '@components/Icon';
import { Logo, PathNavContainer } from './PathNav.style';
import { Link } from '@components/Link';

interface pathNavProps {
pathStatus: 'back' | 'home';
Expand All @@ -26,7 +27,11 @@ const PathNav = ({ pathStatus }: pathNavProps) => {
/>
</Button>
) : (
<Logo />
<Link
pageLink='/posts'
setActiveStyle={false}>
<Logo />
</Link>
)}
</PathNavContainer>
);
Expand Down

0 comments on commit 765433c

Please sign in to comment.