feat: date picker navigation (#4286)

Added month and year dropdowns
This commit is contained in:
RoccoSmit 2025-01-11 01:46:08 +11:00 committed by GitHub
parent 2cd524e4fa
commit 3081015692
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"
/>