Skip to content

Commit

Permalink
refactor: END_DATE를 불러오는 import 구문을 동적 import로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
smb0123 committed Aug 31, 2024
1 parent 75a0874 commit 02b41d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/hooks/useApplication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>) => {
const nonValidatedQuestion = applicationNames
.map((name) => {
Expand Down

0 comments on commit 02b41d7

Please sign in to comment.