diff --git a/src/app/page.tsx b/src/app/page.tsx index 13c1108f..6efde57e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -2,6 +2,7 @@ import { InfiniteData } from '@tanstack/react-query'; import { API } from '@/api'; import GroupList from '@/components/pages/group-list'; +import { GroupSearchBar } from '@/components/pages/group-list/group-search-bar'; import { GROUP_LIST_PAGE_SIZE } from '@/lib/constants/group-list'; import { GetGroupsResponse } from '@/types/service/group'; @@ -27,5 +28,10 @@ export default async function HomePage({ searchParams }: HomePageProps) { }; // 초기 데이터를 전달해서 무한 스크롤 시작 - return ; + return ( + <> + + ; + + ); } diff --git a/src/components/layout/gnb/index.tsx b/src/components/layout/gnb/index.tsx index 62759261..1567604b 100644 --- a/src/components/layout/gnb/index.tsx +++ b/src/components/layout/gnb/index.tsx @@ -1,15 +1,20 @@ +'use client'; + import Link from 'next/link'; +import { usePathname } from 'next/navigation'; import { Icon } from '@/components/icon'; export const GNB = () => { + const pathname = usePathname(); + return (