Skip to content

Commit

Permalink
[KAN-10] feat: TopTab 컴포넌트적용
Browse files Browse the repository at this point in the history
  • Loading branch information
hakyoung12 committed Sep 9, 2024
1 parent 5afe17a commit 66a7390
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/components/Gnb/Gnb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Logo } from '@/public/images';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import UserStatus from './UserStatus';
import TopTab from '../Tab/TopTab';

//@todo pathname 정해질 시 추가 예정
const navList = [
Expand Down Expand Up @@ -34,11 +35,10 @@ const Gnb = () => {
<ul className='flex gap-24'>
{navList.map((nav, index) => (
<li key={index}>
<Link
className={`text-14 md:text-16 font-semibold ${pathname.includes(nav.link) ? 'text-black' : 'text-white'}`}
href={nav.link}
>
{nav.name}
<Link href={nav.link}>
<TopTab isActive={pathname.includes(nav.link)}>
{nav.name}
</TopTab>
</Link>
</li>
))}
Expand Down

0 comments on commit 66a7390

Please sign in to comment.