adaptive footer
This commit is contained in:
+19
-16
@@ -1,6 +1,5 @@
|
||||
// import { QueryClientProvider } from "@tanstack/react-query";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import "./index.css";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { createBrowserRouter, RouterProvider } from "react-router";
|
||||
import DefaultLayout from "./layout/DefaultLayout.tsx";
|
||||
import MainPage from "./pages/MainPage.tsx";
|
||||
@@ -11,23 +10,12 @@ import UnitTypesPage from "./pages/UnitTypesPages.tsx";
|
||||
import AboutPage from "./pages/AboutPages.tsx";
|
||||
import FavouritesPage from "./pages/FavouritesPage.tsx";
|
||||
import SearchPage from "./pages/SearchPage.tsx";
|
||||
import LayoutWithoutFooter from "./layout/LayoutWithoutFooter.tsx";
|
||||
|
||||
const route = createBrowserRouter([
|
||||
{
|
||||
element: <DefaultLayout />,
|
||||
children: [
|
||||
{
|
||||
path: "/",
|
||||
element: <MainPage />,
|
||||
},
|
||||
{
|
||||
path: "/complex/:complexName",
|
||||
element: <ComplexPage />,
|
||||
},
|
||||
{
|
||||
path: "/complex/:complexName/floors",
|
||||
element: <FloorsPage />,
|
||||
},
|
||||
{
|
||||
path: "/unit-types",
|
||||
element: <UnitTypesPage />,
|
||||
@@ -46,13 +34,28 @@ const route = createBrowserRouter([
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
element: <LayoutWithoutFooter />,
|
||||
children: [
|
||||
{
|
||||
path: "/",
|
||||
element: <MainPage />,
|
||||
},
|
||||
{
|
||||
path: "/complex/:complexName",
|
||||
element: <ComplexPage />,
|
||||
},
|
||||
{
|
||||
path: "/complex/:complexName/floors",
|
||||
element: <FloorsPage />,
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<>
|
||||
{/* <QueryClientProvider client={}> */}
|
||||
<RouterProvider router={route} />
|
||||
<ModalContainer />
|
||||
{/* </QueryClientProvider> */}
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user