From 79ff0a3813e63a88164df3238ea6f16f8c08ad6c Mon Sep 17 00:00:00 2001 From: dm1sh Date: Sat, 12 Aug 2023 12:28:38 +0300 Subject: [PATCH] Removed orphane code and root package-lock --- front/src/assets/userCategories.ts | 2 +- front/src/components/AnnouncementDetails.tsx | 10 +++++----- front/src/hooks/api/useTrashboxes.ts | 2 -- package-lock.json | 6 ------ 4 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644 package-lock.json diff --git a/front/src/assets/userCategories.ts b/front/src/assets/userCategories.ts index f98a907..fc579be 100644 --- a/front/src/assets/userCategories.ts +++ b/front/src/assets/userCategories.ts @@ -13,7 +13,7 @@ const UserCategoriesNames: Record = { const userCategoriesInfos: Record string> = { givingOut: (ann: Announcement) => ( - `Годен до ${new Date(ann.bestBy).toLocaleDateString('ru')}` + `Годен до ${ann.bestBy}` ), needDispose: (ann: Announcement) => ( `Было заинтересно ${ann.bookedBy} чел.` diff --git a/front/src/components/AnnouncementDetails.tsx b/front/src/components/AnnouncementDetails.tsx index 3a9ed35..6693693 100644 --- a/front/src/components/AnnouncementDetails.tsx +++ b/front/src/components/AnnouncementDetails.tsx @@ -38,7 +38,7 @@ const View = ({ {categoryNames[category]} {/* dot */} - Годен до {new Date(bestBy).toLocaleString('ru-RU')} + Годен до {bestBy}

{description}

@@ -84,10 +84,10 @@ function Control({ <>

Забронировали {bookedBy + (bookButton.disabled ? 1 : 0)} чел.

{(myId === userId) ? ( - <> - - +