Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

feat: date picker navigation (#4286)

RoccoSmit308101569273
diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx
index 49a2d94b3..59ad1b573 100644
--- a/web/src/components/MemoEditor/index.tsx
+++ b/web/src/components/MemoEditor/index.tsx
@@ -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"
/>