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} />