mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:09:45 +00:00
Рефакторинг: pages, вынос routes, создание индексных файлов, readme
This commit is contained in:
1 parent
233d047484
commit
e4dd391568
36 files changed
+190
-210
No files matched your search
@@ -0,0 +1,43 @@
|
||||
import {
|
||||
Root,
|
||||
loader as rootLoader,
|
||||
ErrorPage,
|
||||
Main,
|
||||
AboutUs,
|
||||
Labs,
|
||||
Projects,
|
||||
Contact
|
||||
} from './pages';
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
element: <Root />,
|
||||
errorElement: <ErrorPage />,
|
||||
loader: rootLoader,
|
||||
children: [
|
||||
{
|
||||
path: "/",
|
||||
element: <Main />,
|
||||
},
|
||||
{
|
||||
path: "/aboutus",
|
||||
element: <AboutUs />,
|
||||
},
|
||||
{
|
||||
path: "/labs",
|
||||
element: <Labs />,
|
||||
},
|
||||
{
|
||||
path: "/projects",
|
||||
element: <Projects />,
|
||||
},
|
||||
{
|
||||
path: "/contact",
|
||||
element: <Contact />,
|
||||
},
|
||||
]
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
Reference in new issue
Block a user