Ready to build base login page

This commit is contained in:
Pierre HUBERT 2023-06-06 16:50:47 +02:00
parent 704a25d2e8
commit b63df5b953
3 changed files with 13 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 737 KiB

View File

@ -2,6 +2,7 @@ import { Route, Routes } from "react-router-dom";
import "./App.css";
import { AuthApi } from "./api/AuthApi";
import { NotFoundRoute } from "./routes/NotFound";
import { BaseLoginPage } from "./widgets/BaseLoginpage";
function App() {
return (
@ -9,7 +10,9 @@ function App() {
{AuthApi.SignedIn ? (
<Route path="*" element={<p>signed in</p>} />
) : (
<Route path="*" element={<NotFoundRoute />} />
<Route path="*" element={<BaseLoginPage />}>
<Route path="*" element={<NotFoundRoute />} />
</Route>
)}
</Routes>
);

View File

@ -0,0 +1,9 @@
import { Outlet } from "react-router-dom";
export function BaseLoginPage(): React.ReactElement {
return (
<>
<Outlet />
</>
);
}