diff --git a/components/CatergoryBtn/CatergoryBtn.tsx b/components/CatergoryBtn/CatergoryBtn.tsx index 1d6f1e9..9d19aa0 100644 --- a/components/CatergoryBtn/CatergoryBtn.tsx +++ b/components/CatergoryBtn/CatergoryBtn.tsx @@ -3,9 +3,7 @@ import { CategoryBtnProps } from './CategoryBtn.types'; import { useRecoilState, useRecoilValue } from 'recoil'; import { mainPageKategorieState, mainPageState } from '@/states/mainPageState'; -export default function CatergoryBtn({ - categoryName, -}: CategoryBtnProps) { +export default function CatergoryBtn({ categoryName }: CategoryBtnProps) { const [selectedKategorie, setSelectedKategorie] = useRecoilState( mainPageKategorieState ); @@ -19,13 +17,13 @@ export default function CatergoryBtn({ setCurrentPage((prev) => ({ ...prev, currentPage: 1, - })) + })); } else { setSelectedKategorie({ KategorieName: categoryName }); setCurrentPage((prev) => ({ ...prev, currentPage: 1, - })) + })); } }; diff --git a/components/Lander/AllActivities.tsx b/components/Lander/AllActivities.tsx index c5bb7f1..012b908 100644 --- a/components/Lander/AllActivities.tsx +++ b/components/Lander/AllActivities.tsx @@ -167,7 +167,7 @@ function AllActivities() { {KategorieName ? KategorieName : '🛼 모든 체험'} {isLoading ? ( -