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

View File

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