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