From 1bbd0ba2c6c09e4a4a498892d9fc0f36cadbfaf9 Mon Sep 17 00:00:00 2001 From: aleckvincent Date: Tue, 12 Nov 2024 14:50:50 +0100 Subject: [PATCH] center loader on ulam list missions --- .../src/v2/pages/mission-list-ulam-page.tsx | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/frontend/src/v2/pages/mission-list-ulam-page.tsx b/frontend/src/v2/pages/mission-list-ulam-page.tsx index 3cfa4112..ad3dd0b2 100644 --- a/frontend/src/v2/pages/mission-list-ulam-page.tsx +++ b/frontend/src/v2/pages/mission-list-ulam-page.tsx @@ -12,6 +12,7 @@ import MissionListDateRangeNavigator from '../features/common/components/element import MissionListing from '../features/common/components/elements/mission-listing.tsx' import useMissionsQuery from '../features/common/services/use-missions.tsx' import ExportAEMButton from '../features/common/components/ui/export-aem-button.tsx' +import Text from '@common/components/ui/text.tsx' const SIDEBAR_ITEMS = [ { @@ -39,15 +40,24 @@ const MissionListUlamPage: React.FC = () => { setQueryParams(newDateRange) } - return ( - } actions={} />} - sidebar={} - footer={<>} - > - {loading ? ( - - ) : ( + if (loading) { + return ( + Missions en cours de chargement} + /> + ) + } + + if (data) { + return ( + } actions={} />} + sidebar={} + footer={<>} + > { } missionListing={} /> - )} - - ) + + ) + } + + } export default MissionListUlamPage