From d5d817b5ed87e9c4fab0b34cfa81215a2315d985 Mon Sep 17 00:00:00 2001 From: Mihoub Debache Date: Wed, 25 Oct 2023 11:31:54 +0200 Subject: [PATCH] fix(formattedDate): add tag to formattedDate --- client/src/pages/homepage/components/last-updated.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/src/pages/homepage/components/last-updated.js b/client/src/pages/homepage/components/last-updated.js index d5998b3..074483d 100644 --- a/client/src/pages/homepage/components/last-updated.js +++ b/client/src/pages/homepage/components/last-updated.js @@ -34,14 +34,15 @@ export default function LastUpdated() { const { data, error, isLoading } = useLastUpdates(); if (!data) return null; - if (isLoading) return

Loading

; + if (isLoading) return

Chargement

; if (error) return

Erreur

; if (!data?.length) return null; + return ( - + <Title as="h2" title="dernière mise à jour"> Dernières mises à jour @@ -52,7 +53,7 @@ export default function LastUpdated() { +

Mis à jour le {' '} - +

)} isoCode={fields.iso3} />