Skip to content

Commit

Permalink
Fix: lint오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
ssumai-kr committed Jul 15, 2024
1 parent 6ff208a commit db4d5dc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
8 changes: 3 additions & 5 deletions components/CatergoryBtn/CatergoryBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand All @@ -19,13 +17,13 @@ export default function CatergoryBtn({
setCurrentPage((prev) => ({
...prev,
currentPage: 1,
}))
}));
} else {
setSelectedKategorie({ KategorieName: categoryName });
setCurrentPage((prev) => ({
...prev,
currentPage: 1,
}))
}));
}
};

Expand Down
2 changes: 1 addition & 1 deletion components/Lander/AllActivities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function AllActivities() {
{KategorieName ? KategorieName : '🛼 모든 체험'}
</div>
{isLoading ? (
<div className='mt-[-300px]'>
<div className="mt-[-300px]">
<Spinner />
</div>
) : (
Expand Down
2 changes: 1 addition & 1 deletion components/Lander/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 4 additions & 3 deletions components/Lander/SearchResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ function SearchResults({ SearchValue }: SearchResultsProps) {
return (
<div className="mt-[40px]">
<div className="font-sans text-[32px] font-[400] mb-[12px]">
"
<span className="font-sans text-[32px] font-[700]">{resultsValue}</span>
"으로 검색한 결과입니다.
<span className="font-sans text-[32px] font-[700]">
{`"${resultsValue}"`}
</span>
으로 검색한 결과입니다.
</div>
<div className="font-sans text-[16px] font-[400] mb-[24px]">
{SearchResultsData?.totalCount}개의 결과
Expand Down

0 comments on commit db4d5dc

Please sign in to comment.