-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: 과제 리스트 - 간격 * fix: 주차별, 커리큘럼 bar 수정 * fix: 과제 생성, 수정 페이지 타이틀 누락 * fix: 출결번호 오늘날짜만 활성화 * refactor: getIsToday 유틸함수 분리 * fix: 불필요한 base 삭제 * fix: 잘못된 export 수정 * design: 커리큘럼 정렬 맞추기
- Loading branch information
Showing
5 changed files
with
68 additions
and
73 deletions.
There are no files selected for viewing
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
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,17 @@ | ||
import { parseISODate } from "@wow-class/utils"; | ||
|
||
const getIsToday = (deadline: string) => { | ||
const today = new Date(); | ||
const deadlineDay = parseISODate(deadline); | ||
|
||
if ( | ||
today.getFullYear() === deadlineDay.year && | ||
today.getMonth() + 1 === deadlineDay.month && | ||
today.getDate() === deadlineDay.day | ||
) | ||
return true; | ||
|
||
return false; | ||
}; | ||
|
||
export default getIsToday; |