Skip to content

Commit

Permalink
build: date-fns locale import 범위 좁히기
Browse files Browse the repository at this point in the history
  • Loading branch information
eonseok-jeon committed Aug 30, 2024
1 parent 7d42551 commit 9333dfc
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/common/apis/tokenInstance.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'axios';
import { isBefore } from 'date-fns';
import { isBefore } from 'date-fns/isBefore';

const tokenInstance = axios.create({
baseURL: import.meta.env.VITE_BASE_URL,
Expand Down
2 changes: 1 addition & 1 deletion src/common/components/Input/components/Timer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { differenceInSeconds } from 'date-fns';
import { differenceInSeconds } from 'date-fns/differenceInSeconds';
import { useEffect, useState } from 'react';

import { useDeviceType } from 'contexts/DeviceTypeProvider';
Expand Down
3 changes: 2 additions & 1 deletion src/common/hooks/useDate.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { isAfter, isBefore } from 'date-fns';
import { isAfter } from 'date-fns/isAfter';
import { isBefore } from 'date-fns/isBefore';
import { useEffect } from 'react';

import { useRecruitingInfo } from 'contexts/RecruitingInfoProvider';
Expand Down
5 changes: 3 additions & 2 deletions src/views/ApplyPage/components/ApplyInfo/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { format, subMinutes } from 'date-fns';
import { ko } from 'date-fns/locale';
import { format } from 'date-fns/format';
import { ko } from 'date-fns/locale/ko';
import { subMinutes } from 'date-fns/subMinutes';
import { memo } from 'react';

import Callout from '@components/Callout';
Expand Down
6 changes: 3 additions & 3 deletions src/views/ResultPage/components/FinalResult.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { track } from '@amplitude/analytics-browser';
import { format } from 'date-fns';
import { ko } from 'date-fns/locale';
import { format } from 'date-fns/format';
import { ko } from 'date-fns/locale/ko';
import { useEffect } from 'react';

import Title from '@components/Title';
Expand Down Expand Up @@ -122,7 +122,7 @@ const FinalResult = () => {
<div style={{ overflow: 'auto', height: '100%' }}>
<div className={contentWrapperVar[deviceType]}>
<Title>결과 확인</Title>
<Content pass={pass} />
<Content pass={true} />
</div>
</div>
{deviceType !== 'MOB' && pass && (
Expand Down
4 changes: 2 additions & 2 deletions src/views/ResultPage/components/ScreeningResult.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { track } from '@amplitude/analytics-browser';
import { format } from 'date-fns';
import { ko } from 'date-fns/locale';
import { format } from 'date-fns/format';
import { ko } from 'date-fns/locale/ko';
import { useEffect } from 'react';

import Title from '@components/Title';
Expand Down

0 comments on commit 9333dfc

Please sign in to comment.