friends page

This commit is contained in:
Primakov Alexandr Alexandrovich
2024-11-07 18:00:47 +03:00
parent f435d7b25c
commit db1fc8e634
8 changed files with 172 additions and 61 deletions
+3 -1
View File
@@ -6,13 +6,15 @@ import { URLs } from './__data__/urls'
import { NotFound } from './pages/not-found'
import { ByPage } from './pages/by'
import { Friends } from './pages/friends'
export const Dashboard = () => {
return (
<Routes>
<Route
path={URLs.baseUrl}
element={<Navigate replace to={URLs.toNotFound.url} />}
// element={<Navigate replace to={URLs.toNotFound.url} />}
element={<Friends />}
/>
<Route path={URLs.by.url} element={<Container maxW="container.xl"><ByPage /></Container>} />
<Route path="*" element={<NotFound />} />