mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:49:45 +00:00
routing
This commit is contained in:
1 parent
4a00dbefc4
commit
9dd0c74989
7 files changed
+96
-20
No files matched your search
@@ -4,6 +4,10 @@ import { createHashRouter, RouterProvider, Outlet } from 'react-router-dom';
|
||||
|
||||
import Root from './routes/Root';
|
||||
import ErrorPage from './error-page';
|
||||
import Main from './routes/Main';
|
||||
import Aboutus from './routes/Aboutus';
|
||||
import Labs from './routes/Labs';
|
||||
import Projects from './routes/Projects';
|
||||
import Contact from './routes/Contact';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
import './index.scss';
|
||||
@@ -15,6 +19,22 @@ const router = createHashRouter([
|
||||
element: <Root />,
|
||||
errorElement: <ErrorPage />,
|
||||
children: [
|
||||
{
|
||||
path: "/",
|
||||
element: <Main />,
|
||||
},
|
||||
{
|
||||
path: "/aboutus",
|
||||
element: <Aboutus />,
|
||||
},
|
||||
{
|
||||
path: "/labs",
|
||||
element: <Labs />,
|
||||
},
|
||||
{
|
||||
path: "/projects",
|
||||
element: <Projects />,
|
||||
},
|
||||
{
|
||||
path: "/contact",
|
||||
element: <Contact />,
|
||||
|
||||
Reference in new issue
Block a user