diff --git a/src/components/layout/gnb/index.tsx b/src/components/layout/gnb/index.tsx index 5629897a..6e881001 100644 --- a/src/components/layout/gnb/index.tsx +++ b/src/components/layout/gnb/index.tsx @@ -8,13 +8,23 @@ import { Icon } from '@/components/icon'; export const GNB = () => { const pathname = usePathname(); + const highLightPath = (path: string) => { + if (path === '/') { + return pathname === '/'; + } + return pathname.startsWith(path); + }; + return (