A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: live update time on note & trash items
thecodrrb093e58c46cc
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex c47049283..9c8bc261d 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -94,11 +94,7 @@ function Note(props) {data-test-id={`note-${index}-locked`}/>)}- <TimeAgo- live={false}- datetime={note.dateCreated}- locale="short"- />+ <TimeAgo live={true} datetime={note.dateCreated} locale="short" /></>) : (<>@@ -109,7 +105,7 @@ function Note(props) {<TimeAgosx={{ flexShrink: 0 }}locale="en_short"- live={false}+ live={true}datetime={note.dateCreated}mr={1}/>diff --git a/apps/web/src/components/trash-item/index.js b/apps/web/src/components/trash-item/index.jsindex 9b8a675d6..120c7c229 100644--- a/apps/web/src/components/trash-item/index.js+++ b/apps/web/src/components/trash-item/index.js@@ -19,7 +19,10 @@ function TrashItem({ item, index }) {index={index}footer={<Flex mt={1} sx={{ fontSize: "subBody", color: "fontTertiary" }}>- <TimeAgo datetime={item.dateDeleted || item.dateCreated} />+ <TimeAgo+ live={true}+ datetime={item.dateDeleted || item.dateCreated}+ /><Text as="span" mx={1}>•</Text>