init + login

This commit is contained in:
2022-12-11 01:36:17 -06:00
commit f3b12c3756
16 changed files with 401 additions and 0 deletions

14
src/pages/Layout.tsx Normal file
View File

@@ -0,0 +1,14 @@
import { Outlet, Navigate } from 'react-router-dom'
import { isLoggedIn, LoggedIn } from '../authorization'
export function Layout() {
return (
<div>
<h1>Layout</h1>
{
isLoggedIn() === LoggedIn.No && <Navigate to="/login" replace={true} />
}
<Outlet />
</div>
)
}