From e2d20bec01ed249b2047d462a2c30806a95ac2c6 Mon Sep 17 00:00:00 2001 From: KANGYONGSU23 Date: Tue, 28 Nov 2023 10:05:37 +0900 Subject: [PATCH] =?UTF-8?q?fix=20::=20build=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/recruitments/RecruitmentsCard.tsx | 6 +++--- src/components/recruitments/filter.tsx | 4 ++-- src/util/object/jobCodeDorpdownItems.ts | 13 ------------- 3 files changed, 5 insertions(+), 18 deletions(-) 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",