Skip to content

Commit

Permalink
🐛 Add: active Start Date
Browse files Browse the repository at this point in the history
  • Loading branch information
ws-071211 committed Oct 24, 2024
1 parent d8f4823 commit 741116a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Common/atoms/Calendar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ const CalendarBox = ({
)}
<Calendar
value={selectedDate}
activeStartDate={selectedDate}
onChange={(value) => {
if (!(value instanceof Date)) return;
setSelectedDate?.(value);
}}
onActiveStartDateChange={({value}) => {
if (!(value instanceof Date)) return;
setSelectedDate?.(value);
}}
locale="ko"
formatDay={(_locale, date) =>
date.toLocaleString('en', { day: 'numeric' })
Expand Down

0 comments on commit 741116a

Please sign in to comment.