favorites compare completed
This commit is contained in:
+25
-25
@@ -1,42 +1,42 @@
|
||||
import './index.css';
|
||||
import { QueryClientProvider } from '@tanstack/react-query';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { createBrowserRouter, RouterProvider } from 'react-router';
|
||||
import DefaultLayout from './layout/DefaultLayout.tsx';
|
||||
import MainPage from './pages/MainPage.tsx';
|
||||
import ModalContainer from './components/ModalContainer.tsx';
|
||||
import ComplexPage from './pages/ComplexPage.tsx';
|
||||
import FloorsPage from './pages/FloorsPage.tsx';
|
||||
import UnitTypesPage from './pages/UnitTypesPage.tsx';
|
||||
import AboutPage from './pages/AboutPages.tsx';
|
||||
import FavoritesPage from './pages/FavouritesPage.tsx';
|
||||
import SearchPage from './pages/SearchPage.tsx';
|
||||
import LayoutWithoutFooter from './layout/LayoutWithoutFooter.tsx';
|
||||
import { queryClient } from './lib/queryClient.ts';
|
||||
import AboutComplexPage from './pages/AboutComplexPage.tsx';
|
||||
import "./index.css";
|
||||
import { QueryClientProvider } from "@tanstack/react-query";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { createBrowserRouter, RouterProvider } from "react-router";
|
||||
import DefaultLayout from "./layout/DefaultLayout.tsx";
|
||||
import MainPage from "./pages/MainPage.tsx";
|
||||
import ModalContainer from "./components/ModalContainer.tsx";
|
||||
import ComplexPage from "./pages/ComplexPage.tsx";
|
||||
import FloorsPage from "./pages/FloorsPage.tsx";
|
||||
import UnitTypesPage from "./pages/UnitTypesPage.tsx";
|
||||
import AboutPage from "./pages/AboutPages.tsx";
|
||||
import FavoritesPage from "./pages/FavouritesPage.tsx";
|
||||
import SearchPage from "./pages/SearchPage.tsx";
|
||||
import LayoutWithoutFooter from "./layout/LayoutWithoutFooter.tsx";
|
||||
import { queryClient } from "./lib/queryClient.ts";
|
||||
import AboutComplexPage from "./pages/AboutComplexPage.tsx";
|
||||
|
||||
const route = createBrowserRouter([
|
||||
{
|
||||
element: <DefaultLayout />,
|
||||
children: [
|
||||
{
|
||||
path: '/unit-types',
|
||||
path: "/unit-types",
|
||||
element: <UnitTypesPage />,
|
||||
},
|
||||
{
|
||||
path: '/about',
|
||||
path: "/about",
|
||||
element: <AboutPage />,
|
||||
},
|
||||
{
|
||||
path: '/favorites',
|
||||
path: "/favorites",
|
||||
element: <FavoritesPage />,
|
||||
},
|
||||
{
|
||||
path: '/search',
|
||||
path: "/search",
|
||||
element: <SearchPage />,
|
||||
},
|
||||
{
|
||||
path: '/complex/:complexName/about',
|
||||
path: "/complex/:complexName/about",
|
||||
element: <AboutComplexPage />,
|
||||
},
|
||||
],
|
||||
@@ -45,22 +45,22 @@ const route = createBrowserRouter([
|
||||
element: <LayoutWithoutFooter />,
|
||||
children: [
|
||||
{
|
||||
path: '/',
|
||||
path: "/",
|
||||
element: <MainPage />,
|
||||
},
|
||||
{
|
||||
path: '/complex/:complexName',
|
||||
path: "/complex/:complexName",
|
||||
element: <ComplexPage />,
|
||||
},
|
||||
{
|
||||
path: '/complex/:complexName/floors',
|
||||
path: "/complex/:complexName/floors",
|
||||
element: <FloorsPage />,
|
||||
},
|
||||
],
|
||||
},
|
||||
]);
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<>
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<RouterProvider router={route} />
|
||||
|
||||
Reference in New Issue
Block a user