Skip to content
Snippets Groups Projects
Commit 02682fe9 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

header fix

parent ab14a30b
No related branches found
No related tags found
No related merge requests found
Pipeline #396954 failed
......@@ -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 />
</>
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment