From 02682fe9a780300778291c0a7bf3efd67d9fae9f Mon Sep 17 00:00:00 2001 From: liliana <liliana.sanfilippo@uni-bielefeld.de> Date: Thu, 25 Jul 2024 16:33:35 +0200 Subject: [PATCH] header fix --- src/App/App.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/App/App.tsx b/src/App/App.tsx index ac22cf14..7fc434e4 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 /> </> } -- GitLab