✨ feat(analytics): add PrivacyPolicy page

This commit is contained in:
2025-05-28 10:35:44 +00:00
parent 2547572e1c
commit 585aed9233
8 changed files with 447 additions and 4 deletions
+13 -4
View File
@@ -4,10 +4,11 @@ import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import ErrorPage from 'components/pages/ErrorPage/index.js'
import RootLayout from 'components/templates/RouteTracker/index.js'
const MainPage = React.lazy(() => import('components/pages/MainPage'))
const ProjectsPage = React.lazy(() => import('components/pages/ProjectsPage'))
const CurriculumPage = React.lazy(() => import('components/pages/CurriculumPage'))
const ContactPage = React.lazy(() => import('components/pages/ContactPage'))
const MainPage = React.lazy(() => import('components/pages/MainPage/index.js'))
const ProjectsPage = React.lazy(() => import('components/pages/ProjectsPage/index.js'))
const CurriculumPage = React.lazy(() => import('components/pages/CurriculumPage/index.js'))
const ContactPage = React.lazy(() => import('components/pages/ContactPage/index.js'))
const PrivacyPage = React.lazy(() => import('components/pages/PrivacyPage/index.js'))
const Loading = () => (
<Backdrop open={true} aria-label="loading-screen">
@@ -53,6 +54,14 @@ const router = createBrowserRouter([
</React.Suspense>
),
},
{
path: 'privacy',
element: (
<React.Suspense fallback={<Loading />}>
<PrivacyPage />
</React.Suspense>
),
},
],
},
])