chore: tidy

This commit is contained in:
cha0s 2022-03-24 03:57:21 -05:00
parent e759851b97
commit 9bfdc674c4

View File

@ -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>
);
}