This commit is contained in:
Nikolai Petukhov
2024-09-14 09:38:49 +03:00
parent 76bbdbfb61
commit 098e0fe1da
7 changed files with 43 additions and 11 deletions

View File

@@ -3,16 +3,16 @@ import { Routes, Route, Navigate } from 'react-router-dom';
import { URLs } from './__data__/urls';
const Hello = () => <h1>Hello</h1>;
import HomePage from './pages/HomePage.jsx'
import Hello from './pages/Hello.jsx'
import Account from './pages/Account.jsx'
export const Dashboard = () => {
return (
<Routes>
<Route
path={URLs.baseUrl}
element={<Navigate replace to={URLs.auth.url} />}
/>
<Route path={URLs.auth.url} element={<Hello />} />
<Route path={URLs.baseUrl} element={<HomePage/>}/>
<Route path={URLs.auth.url} element={<Hello/>} />
<Route path={URLs.account.url} element={<Account/>}/>
</Routes>
);
};