Skip to content

Commit

Permalink
Use BaseLayout headers in AdminLayout
Browse files Browse the repository at this point in the history
- Updated `src/App.tsx` to integrate BaseLayout headers.
- Modified `src/admin/adminLayout.component.tsx` to use BaseLayout headers.
- Updated tests and snapshots to reflect the changes.
  • Loading branch information
joshuadkitenge committed Jan 8, 2025
1 parent bc578b4 commit e002b9d
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 205 deletions.
12 changes: 4 additions & 8 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ import {
type RouteObject,
} from 'react-router-dom';
import AdminCardView from './admin/adminCardView.component';
import AdminLayout from './admin/adminLayout.component';
import AdminLayout, {
AdminErrorComponent,
} from './admin/adminLayout.component';
import Units from './admin/units/units.component';
import UsageStatuses from './admin/usageStatuses/usageStatuses.component';
import {
Expand All @@ -26,7 +28,6 @@ import {
import { MicroFrontendId } from './app.types';
import Catalogue from './catalogue/catalogue.component';
import CatalogueItemsLandingPage from './catalogue/items/catalogueItemsLandingPage.component';
import ErrorPage from './common/errorPage.component';
import ConfigProvider from './configProvider.component';
import handleIMS_APIError from './handleIMS_APIError';
import { HomePage } from './homePage/homePage.component';
Expand Down Expand Up @@ -100,12 +101,7 @@ const routeObject: RouteObject[] = [
{ path: paths.adminUsageStatuses, Component: UsageStatuses },
{
path: '*',
Component: () => (
<ErrorPage
boldErrorText="Invalid Admin Route"
errorText="The admin route you are trying to access doesn't exist. Please click the Home button to navigate back to the Admin Home page."
/>
),
Component: AdminErrorComponent,
},
],
},
Expand Down
Loading

0 comments on commit e002b9d

Please sign in to comment.