chore: tidy
This commit is contained in:
parent
e759851b97
commit
9bfdc674c4
|
@ -6,7 +6,7 @@ import {
|
|||
import {
|
||||
Link,
|
||||
Outlet,
|
||||
Routes as ReactRouterRoutes,
|
||||
Routes,
|
||||
Route,
|
||||
} from '@flecks/react/router';
|
||||
import {UserRequired} from '@flecks/user/local';
|
||||
|
@ -21,14 +21,8 @@ import styles from './index.module.scss';
|
|||
|
||||
function Persea() {
|
||||
return (
|
||||
<ReactRouterRoutes>
|
||||
<Route
|
||||
element={(
|
||||
<Ui>
|
||||
<Outlet />
|
||||
</Ui>
|
||||
)}
|
||||
>
|
||||
<Routes>
|
||||
<Route element={<Ui><Outlet /></Ui>}>
|
||||
<Route
|
||||
element={(
|
||||
<div className={styles.title}>
|
||||
|
@ -49,29 +43,14 @@ function Persea() {
|
|||
</li>
|
||||
)}
|
||||
/>
|
||||
<Route
|
||||
path="/login"
|
||||
element={<li><Login /></li>}
|
||||
/>
|
||||
<Route path="/login" element={<li><Login /></li>} />
|
||||
</Route>
|
||||
<Route
|
||||
element={(
|
||||
<UserRequired>
|
||||
<Outlet />
|
||||
</UserRequired>
|
||||
)}
|
||||
>
|
||||
<Route
|
||||
path="/overview"
|
||||
element={<Overview />}
|
||||
/>
|
||||
<Route
|
||||
path="/play"
|
||||
element={<Play />}
|
||||
/>
|
||||
<Route element={<UserRequired><Outlet /></UserRequired>}>
|
||||
<Route path="/overview" element={<Overview />} />
|
||||
<Route path="/play" element={<Play />} />
|
||||
</Route>
|
||||
</Route>
|
||||
</ReactRouterRoutes>
|
||||
</Routes>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user