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 ? ( -
+
) : ( diff --git a/components/Lander/Main.tsx b/components/Lander/Main.tsx index 78414b5..bf241d1 100644 --- a/components/Lander/Main.tsx +++ b/components/Lander/Main.tsx @@ -15,7 +15,7 @@ import { mainSearchValueState } from '@/states/mainPageState'; function Main() { const [isSearch, setIsSearch] = useState(false); - const {SearchValue} = useRecoilValue(mainSearchValueState); + const { SearchValue } = useRecoilValue(mainSearchValueState); const date = new Date(); const month = date.getMonth() + 1; //const {id, title, bannerImageUrl} = useRecoilValue(BestOfmonth); diff --git a/components/Lander/SearchResults.tsx b/components/Lander/SearchResults.tsx index 24e9f28..6d90461 100644 --- a/components/Lander/SearchResults.tsx +++ b/components/Lander/SearchResults.tsx @@ -91,9 +91,10 @@ function SearchResults({ SearchValue }: SearchResultsProps) { return (
- " - {resultsValue} - "으로 검색한 결과입니다. + + {`"${resultsValue}"`} + + 으로 검색한 결과입니다.
총 {SearchResultsData?.totalCount}개의 결과