From d6672038bbb8edf599cfcc3b580b399f31c95bea Mon Sep 17 00:00:00 2001 From: en Date: Sat, 15 Feb 2025 18:08:53 +0100 Subject: [PATCH] fix(notes): missing links on date time --- src/components/Notes/Note.tsx | 16 ++++++++++------ src/components/Notes/internal/NoteWrapper.tsx | 16 ++++++++++++---- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/components/Notes/Note.tsx b/src/components/Notes/Note.tsx index eb0ced3..16f709e 100644 --- a/src/components/Notes/Note.tsx +++ b/src/components/Notes/Note.tsx @@ -109,8 +109,6 @@ export const Note = ({ ndkEvent }: NoteProps) => { const baseUrl = appRoutes.feed + '/' - // Did user already repost this - // Show who reposted the note const reposterVisual = repostEvent && reposterRoute ? ( @@ -178,12 +176,18 @@ export const Note = ({ ndkEvent }: NoteProps) => { {noteEvent.created_at && (
- + {formatDate(noteEvent.created_at * 1000, 'hh:mm aa')}{' '} - - + + {formatDate(noteEvent.created_at * 1000, 'dd/MM/yyyy')} - +
)} diff --git a/src/components/Notes/internal/NoteWrapper.tsx b/src/components/Notes/internal/NoteWrapper.tsx index b8c9e74..13a704a 100644 --- a/src/components/Notes/internal/NoteWrapper.tsx +++ b/src/components/Notes/internal/NoteWrapper.tsx @@ -32,6 +32,8 @@ export const NoteWrapper = ({ noteEntity }: NoteWrapperProps) => { if (!note) return + const baseUrl = appRoutes.feed + '/' + return (
@@ -58,12 +60,18 @@ export const NoteWrapper = ({ noteEntity }: NoteWrapperProps) => {
{note.created_at && (
- + {formatDate(note.created_at * 1000, 'hh:mm aa')}{' '} - - + + {formatDate(note.created_at * 1000, 'dd/MM/yyyy')} - +
)}