-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
07월 14일 해당 날짜 지날 시 타이머 내용 및 타이머 바뀌도록 수정 (#124)
* Chore: uuid 라이브러리 추가 * Feat: 07월 14일 마감 날짜 지날 시 바로 타이머 내용 바뀌도록 수정 * Fix: 새로고침없이 timer가 지났을 경우 글귀 변경 * Fix: React.FC 제거 * Comment: Hackathon 신청페이지 주석처리
- Loading branch information
Showing
7 changed files
with
133 additions
and
66 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { atom } from 'recoil'; | ||
import { v1 } from 'uuid'; | ||
|
||
interface TimeLeft { | ||
days: number; | ||
hours: number; | ||
minutes: number; | ||
seconds: number; | ||
} | ||
|
||
export const deadlineTextState = atom<string>({ | ||
key: `deadlineTextState/${v1()}`, | ||
default: '7월 14일 일요일 23시 59분 참가 신청 마감', | ||
}); | ||
|
||
export const infoTextState = atom<string>({ | ||
key: `infoTextState/${v1()}`, | ||
default: '참가 신청 마감까지 남은 시간', | ||
}); | ||
|
||
export const timeLeftState = atom<TimeLeft>({ | ||
key: `timeLeftState/${v1()}`, | ||
default: { | ||
days: 0, | ||
hours: 0, | ||
minutes: 0, | ||
seconds: 0, | ||
}, | ||
}); | ||
|
||
export const deadlineState = atom<string>({ | ||
key: `deadlineState/${v1()}`, | ||
default: '2024-07-14 23:59:59', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters