Ready to build base login page
This commit is contained in:
parent
704a25d2e8
commit
b63df5b953
BIN
geneit_app/public/login_splash.jpg
Normal file
BIN
geneit_app/public/login_splash.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 737 KiB |
@ -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>
|
||||
);
|
||||
|
9
geneit_app/src/widgets/BaseLoginpage.tsx
Normal file
9
geneit_app/src/widgets/BaseLoginpage.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
import { Outlet } from "react-router-dom";
|
||||
|
||||
export function BaseLoginPage(): React.ReactElement {
|
||||
return (
|
||||
<>
|
||||
<Outlet />
|
||||
</>
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue
Block a user