feat: date picker navigation (#4286)

Added month and year dropdowns
pull/4290/head
RoccoSmit 2 months ago committed by GitHub
parent 2cd524e4fa
commit 3081015692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save