diff --git a/frontend/components/kanban/column/ColumnWithBackButton.component.tsx b/frontend/components/kanban/column/ColumnWithBackButton.component.tsx
index 423669d7..89caab0c 100644
--- a/frontend/components/kanban/column/ColumnWithBackButton.component.tsx
+++ b/frontend/components/kanban/column/ColumnWithBackButton.component.tsx
@@ -30,9 +30,11 @@ const KanbanColumnDetailCard = ({
data: kanbanDataArray,
isError,
isLoading,
- } = useQuery
(["kanbanDataArray", generation], () =>
- getAllKanbanData(navbarId, generation)
- );
+ } = useQuery({
+ queryKey: ["kanbanDataArray", generation],
+ queryFn: () => getAllKanbanData(navbarId, generation),
+ staleTime: 3000,
+ });
if (!kanbanDataArray || isLoading) {
return 로딩중...
;
diff --git a/frontend/src/apis/applicant/index.ts b/frontend/src/apis/applicant/index.ts
index a2a5db74..355e65dc 100644
--- a/frontend/src/apis/applicant/index.ts
+++ b/frontend/src/apis/applicant/index.ts
@@ -1,6 +1,7 @@
import { getAllInterviewerWithOrder } from "@/src/apis/interview";
import { APPLICANT_KEYS } from "@/src/constants";
import { https } from "@/src/functions/axios";
+import { ApplicantPassState, getKanbanCards, KanbanCardReq } from "../kanban";
export interface ApplicantReq {
name: string;
@@ -131,3 +132,18 @@ export const getApplicantTimeTables = async (id: string) => {
return data;
};
+
+interface PatchApplicantStateRes {
+ passState: ApplicantPassState;
+}
+
+export const patchApplicantState = async (
+ id: string,
+ afterState: "non-pass" | "pass"
+) => {
+ const { data } = await https.patch(
+ `/applicants/${id}/state?afterState=${afterState}`
+ );
+
+ return data;
+};
diff --git a/frontend/src/utils/applicant/index.ts b/frontend/src/utils/applicant/index.ts
new file mode 100644
index 00000000..3210c4aa
--- /dev/null
+++ b/frontend/src/utils/applicant/index.ts
@@ -0,0 +1,9 @@
+import { KanbanCardReq } from "@/src/apis/kanban";
+
+export const findApplicantState = (
+ cardsData: KanbanCardReq[],
+ applicantId: string
+) => {
+ return cardsData.find((card) => card.applicantId === applicantId)?.state
+ .passState;
+};