Skip to content

Commit

Permalink
feat: button-nav 아이콘 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bottlewook committed Jan 16, 2024
1 parent 383a478 commit f9c9ecc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/shared/bottom-nav/BottomNav.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 42px;
}
}
}
6 changes: 4 additions & 2 deletions src/components/shared/bottom-nav/BottomNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { usePathname } from 'next/navigation';

import Channel from '@components/icons/Channel';
import Favorite from '@components/icons/Favorite';
import FilledFavorite from '@components/icons/FilledFavorite';
import FilledHome from '@components/icons/FilledHome';
import Home from '@components/icons/Home';
import Map from '@components/icons/Map';
import Profile from '@components/icons/Profile';
Expand All @@ -31,13 +33,13 @@ function BottomNav() {
</li>
<li>
<Link href="/favorite">
<Favorite color={filteredPathName.startsWith('favorite') ? 'primary' : 'black'} />
{filteredPathName.startsWith('favorite') ? <FilledFavorite /> : <Favorite />}
<Text typography="t7" fontWeight="200" color={filteredPathName.startsWith('favorite') ? 'primary' : 'black'}>즐겨찾기</Text>
</Link>
</li>
<li>
<Link href="/">
<Home color={filteredPathName === '' ? 'primary' : 'black'} />
{filteredPathName === '' ? <FilledHome /> : <Home />}
<Text typography="t7" fontWeight="200" color={filteredPathName === '' ? 'primary' : 'black'}></Text>
</Link>
</li>
Expand Down

0 comments on commit f9c9ecc

Please sign in to comment.