Skip to content

Commit

Permalink
feat: date picker navigation (#4286)
Browse files Browse the repository at this point in the history
Added month and year dropdowns
  • Loading branch information
RoccoSmit authored Jan 10, 2025
1 parent 2cd524e commit 3081015
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/components/MemoEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@ const MemoEditor = (props: Props) => {
selected={displayTime}
onChange={(date) => date && setDisplayTime(date)}
showTimeSelect
showMonthDropdown
showYearDropdown
yearDropdownItemNumber={5}
dateFormatCalendar=" "
customInput={<span className="cursor-pointer text-sm text-gray-400 dark:text-gray-500">{displayTime.toLocaleString()}</span>}
calendarClassName="ml-24 sm:ml-44"
/>
Expand Down

0 comments on commit 3081015

Please sign in to comment.