Рефакторинг: pages, вынос routes, создание индексных файлов, readme

This commit is contained in:
ifraimka1 committed 2024-02-16 11:18:49 +03:00
1 parent 233d047484
commit e4dd391568
36 files changed
+190 -210

No files matched your search

+43
View File
@@ -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;