diff --git a/src/components/recruitments/RecruitmentsCard.tsx b/src/components/recruitments/RecruitmentsCard.tsx index 359811d..e3a664a 100644 --- a/src/components/recruitments/RecruitmentsCard.tsx +++ b/src/components/recruitments/RecruitmentsCard.tsx @@ -1,10 +1,10 @@ "use client"; -import { Icon } from "@team-return/design-system"; import { useSetBookmarks } from "@/apis/bookmarks"; +import { useGetRecruitmentsList } from "@/apis/recruitments"; +import { Icon } from "@team-return/design-system"; import Image from "next/image"; import { useSearchParams } from "next/navigation"; -import { useGetRecruitmentsList } from "@/apis/recruitments"; import React from "react"; import HoverPrefetchLink from "../common/HoverPrefetchLink"; import RecruitmentSkelton from "../common/Skelton/SkeltonElement"; @@ -12,7 +12,7 @@ import RecruitmentSkelton from "../common/Skelton/SkeltonElement"; export default function RecruitmentsCard() { const getParams = useSearchParams(); - const { data: recruitmentsList, isLoading } = GetRecruitmentsList(getParams.toString()); + const { data: recruitmentsList, isLoading } = useGetRecruitmentsList(getParams.toString()); const { mutate: SetBookmarksMutate } = useSetBookmarks(); diff --git a/src/components/recruitments/filter.tsx b/src/components/recruitments/filter.tsx index b90c96a..af05fbc 100644 --- a/src/components/recruitments/filter.tsx +++ b/src/components/recruitments/filter.tsx @@ -5,7 +5,7 @@ import useForm from "@/hook/useForm"; import { RecruitmentsQueryType } from "@/hook/useQueryString/type"; import { useQueryString } from "@/hook/useQueryString/useQueryString"; import { internDropdownItems } from "@/util/object/jobCodeDorpdownItems"; -import React, { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import DropDown from "../common/DropDown"; import SearchDropDown from "../common/SearchDropDown"; import TextFiled from "../common/TextFiled"; @@ -53,7 +53,7 @@ function Filter() { } else setFilter((prev) => ({ ...prev, [jobType]: itemCode })); }; - const { data } = useGetCode("JOB"); + const { data:codes } = useGetCode("JOB"); const jobCodeDropdownItems = codes?.codes.map((item) => ({ code: item.code.toString(), diff --git a/src/util/object/jobCodeDorpdownItems.ts b/src/util/object/jobCodeDorpdownItems.ts index cc08172..1becf60 100644 --- a/src/util/object/jobCodeDorpdownItems.ts +++ b/src/util/object/jobCodeDorpdownItems.ts @@ -1,16 +1,3 @@ -import { GetCode } from "@/apis/code"; - -interface PropsType { - setFilter: React.Dispatch< - React.SetStateAction<{ - page: string; - job_code: string; - tech_code: string; - winter_intern: string; - }> - >; -} - export const internDropdownItems = [ { code: "true",