diff --git a/frontend/src/index.jsx b/frontend/src/index.jsx index 70a59dc..78b5e63 100644 --- a/frontend/src/index.jsx +++ b/frontend/src/index.jsx @@ -12,13 +12,13 @@ import reportWebVitals from "./reportWebVitals"; import ErrorPage from "./pages/error-page"; import Builder from "./pages/build/builder"; import Callback from "./pages/Callback"; -import GlobalHeader from "./components/global-header"; +import GlobalHeaderAndFooter from "./components/global-components"; import { hasTokenCookie } from "./utils/queries"; import Profile from "./pages/profile"; const router = createBrowserRouter([ { - element: , + element: , loader: async () => { return hasTokenCookie(); }, diff --git a/frontend/src/pages/App.jsx b/frontend/src/pages/App.jsx index 47a55c4..e02d490 100644 --- a/frontend/src/pages/App.jsx +++ b/frontend/src/pages/App.jsx @@ -3,7 +3,15 @@ import ButtonPrimary from "../components/button-primary"; function App() { return ( -
+
+