Skip to content
Snippets Groups Projects
Commit d5f604d3 authored by wuttigaisorn's avatar wuttigaisorn
Browse files

fix(fixed-layout): fixed-layout

parent f7866032
No related branches found
No related tags found
No related merge requests found
Pipeline #411637 passed
import "./App.css";
import "bootstrap/dist/css/bootstrap.min.css";
import { Route, Routes } from "react-router-dom";
import { Footer, Header, Navbar, NotFound } from "../../components";
import { Header, Navbar, NotFound } from "../../components";
import { getPathMapping, stringToSlug } from "../../utils";
import { useEffect } from "react";
import "../../assets/fonts/Sloop-ScriptThree.ttf";
......@@ -28,19 +28,17 @@ const App = () => {
{/* Header and PageContent */}
<Routes>
{Object.entries(pathMapping).map(
([path, { title, lead, component: Component }]) => (
<Route
key={path}
path={path}
element={
<>
<Component />
</>
}
/>
)
)}
{Object.entries(pathMapping).map(([path, { component: Component }]) => (
<Route
key={path}
path={path}
element={
<>
<Component />
</>
}
/>
))}
<Route
path="*"
element={
......
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