From 02b41d7780a76a072f19dcbd604f207e922eab3a Mon Sep 17 00:00:00 2001 From: minbo Date: Sat, 31 Aug 2024 19:37:20 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20END=5FDATE=EB=A5=BC=20=EB=B6=88?= =?UTF-8?q?=EB=9F=AC=EC=98=A4=EB=8A=94=20import=20=EA=B5=AC=EB=AC=B8?= =?UTF-8?q?=EC=9D=84=20=EB=8F=99=EC=A0=81=20import=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/hooks/useApplication.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/hooks/useApplication.tsx b/frontend/src/hooks/useApplication.tsx index d54c6c1c..b95c7857 100644 --- a/frontend/src/hooks/useApplication.tsx +++ b/frontend/src/hooks/useApplication.tsx @@ -17,13 +17,16 @@ import { applicationDataAtom, applicationIndexAtom, } from "../stores/application"; -import { END_DATE } from "../constants/application/28"; export const useApplication = () => { // TODO: 질문의 이름마다 side effect가 있으니 주의하면 좋을 것 const setApplicationIndex = useSetAtom(applicationIndexAtom); const applicationData = useAtomValue(applicationDataAtom); + const { + END_DATE, + } = require(`@/src/constants/application/${CURRENT_GENERATION}.ts`); + const canApplicationNext = (applicationNames: Array) => { const nonValidatedQuestion = applicationNames .map((name) => {