From 0783374a30315d012aa0fffe76403f3658fbf98e Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Mon, 24 Jun 2024 17:52:41 +0200 Subject: [PATCH] fix(post): author edit reason was missing --- src/components/post-desktop/post-desktop.tsx | 6 +++--- src/components/post-mobile/post-mobile.tsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/post-desktop/post-desktop.tsx b/src/components/post-desktop/post-desktop.tsx index d4fdcaff..b4ba96c2 100644 --- a/src/components/post-desktop/post-desktop.tsx +++ b/src/components/post-desktop/post-desktop.tsx @@ -197,11 +197,11 @@ const PostMessage = ({ post }: PostProps) => { {showOriginal && }
- (Edited at {getFormattedDate(edit?.timestamp)},{' '} + Comment edited at {getFormattedDate(edit?.timestamp)}. {reason && 'Reason: "' + reason + '". '} setShowOriginal(!showOriginal)}> - {showOriginal ? 'hide original' : 'show original'} + Click here - ) + {showOriginal ? ' to hide the original.' : ' to show the original.'}
)} diff --git a/src/components/post-mobile/post-mobile.tsx b/src/components/post-mobile/post-mobile.tsx index 49af16ad..04f8256b 100644 --- a/src/components/post-mobile/post-mobile.tsx +++ b/src/components/post-mobile/post-mobile.tsx @@ -154,11 +154,11 @@ const PostMessageMobile = ({ post }: PostProps) => { {showOriginal && }
- (Edited at {getFormattedDate(edit?.timestamp)},{' '} + Comment edited at {getFormattedDate(edit?.timestamp)}. {reason && 'Reason: "' + reason + '". '} setShowOriginal(!showOriginal)}> - {showOriginal ? 'hide original' : 'show original'} + Click here - ) + {showOriginal ? ' to hide the original.' : ' to show the original.'}
)}