diff --git a/apps/backoffice/src/app/features/configuration/pages/ConfigurationPage/index.tsx b/apps/backoffice/src/app/features/configuration/pages/ConfigurationPage/index.tsx index e6bfd6059..a7221e704 100644 --- a/apps/backoffice/src/app/features/configuration/pages/ConfigurationPage/index.tsx +++ b/apps/backoffice/src/app/features/configuration/pages/ConfigurationPage/index.tsx @@ -30,6 +30,7 @@ import { AdvancedTable, useServerTable, ModalFooter, + PageLoader, } from "@ema-platform/ui"; import { LocationPage } from "../../../location/pages/LocationPage"; import { CertificationPage } from "../../../certification/pages/CertificationPage"; @@ -292,11 +293,7 @@ function ProfessionTab() { ]; if (isLoading) { - return ( -
- -
- ); + return ; } if (isError) { diff --git a/apps/backoffice/src/app/features/location/components/LocationTree.tsx b/apps/backoffice/src/app/features/location/components/LocationTree.tsx index 311c7622e..7915c3d29 100644 --- a/apps/backoffice/src/app/features/location/components/LocationTree.tsx +++ b/apps/backoffice/src/app/features/location/components/LocationTree.tsx @@ -23,6 +23,7 @@ import { useGetLocationsQuery } from '../api/location-api'; import type { Location } from '../types/location'; import { useTranslation } from 'react-i18next'; import { useLocalized } from '@ema-platform/api'; +import { PageLoader } from '@ema-platform/ui'; interface LocationTreeProps { selectedId: string | null; @@ -207,11 +208,7 @@ export function LocationTree({ ); if (isLoading) { - return ( -
- -
- ); + return ; } return ( diff --git a/apps/backoffice/src/app/features/location/pages/LocationPage.tsx b/apps/backoffice/src/app/features/location/pages/LocationPage.tsx index 0e2954a82..b2d4f9e3c 100644 --- a/apps/backoffice/src/app/features/location/pages/LocationPage.tsx +++ b/apps/backoffice/src/app/features/location/pages/LocationPage.tsx @@ -17,7 +17,7 @@ import { import { useDisclosure } from '@mantine/hooks'; import { IconSettings, IconMap, IconInfoCircle, IconPlus } from '@tabler/icons-react'; import { useTranslation } from 'react-i18next'; -import { notify, useErrorHandler, ModalFooter } from '@ema-platform/ui'; +import { notify, useErrorHandler, ModalFooter, PageLoader } from '@ema-platform/ui'; import { LocationTree } from '../components/LocationTree'; import { LocationDetail } from '../components/LocationDetail'; import { LocationForm } from '../components/LocationForm'; @@ -103,11 +103,7 @@ export function LocationPage() { }, [selectedLocation, deleteLocation, closeDeleteModal, handleError]); if (typesLoading) { - return ( -
- -
- ); + return ; } return ( diff --git a/apps/backoffice/src/app/features/logistics-head/pages/LogisticsHeadDashboardPage/index.tsx b/apps/backoffice/src/app/features/logistics-head/pages/LogisticsHeadDashboardPage/index.tsx index dc5ed4af4..392f54c9d 100644 --- a/apps/backoffice/src/app/features/logistics-head/pages/LogisticsHeadDashboardPage/index.tsx +++ b/apps/backoffice/src/app/features/logistics-head/pages/LogisticsHeadDashboardPage/index.tsx @@ -13,7 +13,7 @@ import { Title, } from '@mantine/core'; import { IconChevronRight } from '@tabler/icons-react'; -import { AdvancedTable, useServerTable } from '@ema-platform/ui'; +import { AdvancedTable, useServerTable, PageLoader } from '@ema-platform/ui'; import { STATUS_COLORS, STATUS_LABELS, @@ -37,11 +37,7 @@ export function LogisticsHeadDashboardPage() { const table = useServerTable(); if (queue.isLoading || mine.isLoading) { - return ( -
- -
- ); + return ; } const unclaimed = queue.data?.items ?? []; diff --git a/apps/backoffice/src/app/features/payment-config/pages/PaymentConfigPage/index.tsx b/apps/backoffice/src/app/features/payment-config/pages/PaymentConfigPage/index.tsx index afbb6c624..4408049f1 100644 --- a/apps/backoffice/src/app/features/payment-config/pages/PaymentConfigPage/index.tsx +++ b/apps/backoffice/src/app/features/payment-config/pages/PaymentConfigPage/index.tsx @@ -30,6 +30,7 @@ import { AdvancedTable, useServerTable, type AdvancedColumn, + PageLoader, } from '@ema-platform/ui'; import { extractErrorMessage, @@ -63,11 +64,7 @@ export function PaymentConfigPage() { const { setPageIndex, pageSize, setPageSize, paginate } = useServerTable(); if (isLoading) { - return ( -
- -
- ); + return ; } if (error) { diff --git a/apps/backoffice/src/app/features/result/pages/ExamAppealsPage/index.tsx b/apps/backoffice/src/app/features/result/pages/ExamAppealsPage/index.tsx index 884f93d8e..368b92d05 100644 --- a/apps/backoffice/src/app/features/result/pages/ExamAppealsPage/index.tsx +++ b/apps/backoffice/src/app/features/result/pages/ExamAppealsPage/index.tsx @@ -15,7 +15,7 @@ import { Title, } from '@mantine/core'; import { IconInfoCircle } from '@tabler/icons-react'; -import { AdvancedTable, notify, useServerTable } from '@ema-platform/ui'; +import { AdvancedTable, notify, useServerTable, PageLoader } from '@ema-platform/ui'; import { useDateDisplayer } from '@ema-platform/shared'; import { extractErrorMessage } from '@ema-platform/api'; import { @@ -61,11 +61,7 @@ export function ExamAppealsPage() { }; if (isLoading) { - return ( -
- -
- ); + return ; } if (isError) { return (