Skip to content

Commit

Permalink
fix :: build 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Nov 28, 2023
1 parent 7b06338 commit e2d20be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/components/recruitments/RecruitmentsCard.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
"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";

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();

Expand Down
4 changes: 2 additions & 2 deletions src/components/recruitments/filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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(),
Expand Down
13 changes: 0 additions & 13 deletions src/util/object/jobCodeDorpdownItems.ts
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit e2d20be

Please sign in to comment.