This commit is contained in:
Primakov Alexandr Alexandrovich
2024-10-22 21:29:29 +03:00
commit 2971f2b90d
17 changed files with 11047 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import React from 'react'
import { Navigate, Route, Routes } from 'react-router-dom'
import { URLs } from './__data__/urls'
import { NotFound } from './pages/not-found'
import { ByPage } from './pages/by'
export const Dashboard = () => {
return (
<Routes>
<Route
path={URLs.baseUrl}
element={<Navigate replace to={URLs.toNotFound.url} />}
/>
<Route path={URLs.by.url} element={<ByPage />} />
<Route path="*" element={<NotFound />} />
</Routes>
)
}