diff --git a/src/App/App.tsx b/src/App/App.tsx index ac22cf14a928ca282e684679da5b9e0b4c3e1549..7fc434e47788769f10b9b9851645e75d8f1bf7de 100644 --- a/src/App/App.tsx +++ b/src/App/App.tsx @@ -54,13 +54,13 @@ const App = () => { {/* Header and PageContent */} <Routes> - {Object.entries(pathMapping).map(([path, { title, lead, component: Component }]) => ( + {Object.entries(pathMapping).map(([path, {title, header: Header, component: Component}]) => ( <Route key={path} path={path} element={ <> - <Header title={title || ""} lead={lead || ""} /> + <Header/> {/* Page content */} <div className="container-fluid"> <div className="row"> @@ -85,10 +85,7 @@ const App = () => { path="*" element={ <> - <Header - title="Not Found" - lead="The requested URL was not found on this server." - /> + <NotFound /> </> }