diff --git a/ui/src/react-admin/modules/content-page/views/ContentPageDetail.tsx b/ui/src/react-admin/modules/content-page/views/ContentPageDetail.tsx index ab968070..6668d46e 100644 --- a/ui/src/react-admin/modules/content-page/views/ContentPageDetail.tsx +++ b/ui/src/react-admin/modules/content-page/views/ContentPageDetail.tsx @@ -526,7 +526,7 @@ export const ContentPageDetail: FC = ({ {renderContentActions()} diff --git a/ui/src/react-admin/modules/shared/components/LoadingErrorLoadedComponent/LoadingErrorLoadedComponent.tsx b/ui/src/react-admin/modules/shared/components/LoadingErrorLoadedComponent/LoadingErrorLoadedComponent.tsx index 7b2114d5..2d03db4b 100644 --- a/ui/src/react-admin/modules/shared/components/LoadingErrorLoadedComponent/LoadingErrorLoadedComponent.tsx +++ b/ui/src/react-admin/modules/shared/components/LoadingErrorLoadedComponent/LoadingErrorLoadedComponent.tsx @@ -3,7 +3,8 @@ import type { AvoAuthErrorActionButton } from '@viaa/avo2-types'; import type { FunctionComponent, ReactElement, ReactNode } from 'react'; import React from 'react'; import { CenteredSpinner } from '~shared/components/Spinner/CenteredSpinner'; -import { tHtml } from '~shared/helpers/translation-functions'; +import { tHtml, tText } from '~shared/helpers/translation-functions'; +import ErrorView from '../error/ErrorView'; export type LoadingState = 'loading' | 'loaded' | 'error'; @@ -46,24 +47,17 @@ export const LoadingErrorLoadedComponent: FunctionComponent { const renderError = () => ( - // - <> - locationId: {locationId} -
- {loadingInfo.message || - tHtml( + + ) + } + icon={loadingInfo.icon || ('alertTriangle' as IconName)} + actionButtons={loadingInfo.actionButtons || ['home']} + locationId={locationId} + /> ); // Render