Skip to content

Commit

Permalink
Merge pull request #469 from Bamdoliro/feat/#460
Browse files Browse the repository at this point in the history
fix(user): 입학 등록 기간 추가
  • Loading branch information
arkk200 authored Nov 16, 2023
2 parents ac1e07c + 7b41819 commit 5781ce0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ROUTES } from '@/constants/common/constant';
import {
일차_합격_발표,
입학_등록_기간,
제출_마감_날짜,
제출_시작_날짜,
최종_합격_발표,
Expand All @@ -25,7 +26,9 @@ export const useDday = () => {
? 제출_마감_날짜
: dayjs().isBefore(일차_합격_발표.add(2, 'day'))
? 일차_합격_발표
: 최종_합격_발표;
: dayjs().isBefore(최종_합격_발표)
? 최종_합격_발표
: 입학_등록_기간;

const [remainDays, setRemainDays] = useState(currentTime.diff(dayjs(), 'days', true));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {
일차_합격_발표,
입학_등록_기간,
제출_시작_날짜,
최종_합격_발표,
} from '@/constants/form/constant';
Expand All @@ -13,6 +14,7 @@ export const useRemainDate = () => {
[제출_시작_날짜, '원서 접수 시작까지'],
[최종_합격_발표, '최종합격자 발표'],
[일차_합격_발표, '1차 합격자 발표'],
[입학_등록_기간, '입학 등록 기간'],
]);

const timeDiff = dayjs.utc(currentTime.diff(dayjs())).format('HH:mm:ss');
Expand Down

0 comments on commit 5781ce0

Please sign in to comment.