From d800df552765c211365a7b4fabc5d42237b6ffd0 Mon Sep 17 00:00:00 2001 From: Valimp Date: Thu, 25 Jan 2024 10:39:40 +0100 Subject: [PATCH] fix: make buttons more intuitive --- interface/components/ArchiveButton.tsx | 3 ++- interface/components/CloseButton.tsx | 3 ++- interface/components/Date.tsx | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/interface/components/ArchiveButton.tsx b/interface/components/ArchiveButton.tsx index 55ec2a7..2f8803d 100644 --- a/interface/components/ArchiveButton.tsx +++ b/interface/components/ArchiveButton.tsx @@ -11,10 +11,11 @@ export default function CloseButton(props: { id: number }) { return ( ) } \ No newline at end of file diff --git a/interface/components/CloseButton.tsx b/interface/components/CloseButton.tsx index f69c4c3..e0dff74 100644 --- a/interface/components/CloseButton.tsx +++ b/interface/components/CloseButton.tsx @@ -12,10 +12,11 @@ export default function CloseButton(props: { id: number }) { return ( ) } \ No newline at end of file diff --git a/interface/components/Date.tsx b/interface/components/Date.tsx index 7ff6205..07f3128 100644 --- a/interface/components/Date.tsx +++ b/interface/components/Date.tsx @@ -1,6 +1,6 @@ function dateParser(date: string) { - // Take only ten first caracters of the date - let newDate = date.slice(0, 10).split('-').reverse().join('/') + // Take only the date and hour and minutes + let newDate = date.slice(0, 16).split('T').join(' / ') return newDate }