-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: 캘린더 UI 개선에 사용되는 스타일 속성들 상수화 * refactor: useCalendarInfo 커스텀 훅 로직 개선 - 지난 달 버튼 비활성화 판단을 위한 isCurrentDate 변수 추가 - 일요일이 제일 왼쪽으로 배치되는 디자인 변경 사항을 반영하기 위한 로직 수정, 나머지 연산자 활용 로직 제거 - 지난 날, 토요일 스타일 적용을 위한 판단 로직 추가 * chore: 캘린더 UI 구성에 활용되는 매직넘버 의미있는 상수화 * refactor: 캘린더 UI 개선 - 일요일을 가장 왼쪽으로 오도록 수정 - 선택된 날짜, 일요일, 토요일, 오늘, 지날 날에 대한 스타일 적용 및 수정 * chore: global button 스타일에 padding을 0으로 설정 * design: 캘린더 스타일 파일 수정 - 오늘 표시하는 UI 변경 - 특정 날짜를 강조하는 스타일 함수에 적용한 early return 패턴에 {} 제거 * refactor: 캘린더 컴포넌트 수정 - 이전 달, 다음 달로 이동시키는 함수명 변경 - 날짜 도메인 용어 변경사항 반영 * chore: jsDoc을 활용해 커스텀 훅 설명 및 날짜 도메인 용어 변경사항 반영 * feat: 모든 키들이 불리언 값을 가지는 객체 타입을 정의하는 유틸리티 타입 구현
- Loading branch information
Showing
8 changed files
with
258 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const CALENDAR_PROPERTIES = { | ||
firstMonth: 1, | ||
lastMonth: 12, | ||
daysInOneWeek: 7, | ||
sundayNumber: 0, | ||
saturdayNumber: 6, | ||
}; | ||
|
||
export default CALENDAR_PROPERTIES; |
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
Oops, something went wrong.