GeneIT/geneit_app/src/App.tsx

22 lines
533 B
TypeScript
Raw Normal View History

2023-06-06 14:39:47 +00:00
import { Route, Routes } from "react-router-dom";
import "./App.css";
import { AuthApi } from "./api/AuthApi";
import { NotFoundRoute } from "./routes/NotFound";
2023-06-06 14:50:47 +00:00
import { BaseLoginPage } from "./widgets/BaseLoginpage";
2023-06-06 08:52:50 +00:00
function App() {
return (
2023-06-06 14:39:47 +00:00
<Routes>
{AuthApi.SignedIn ? (
<Route path="*" element={<p>signed in</p>} />
) : (
2023-06-06 14:50:47 +00:00
<Route path="*" element={<BaseLoginPage />}>
<Route path="*" element={<NotFoundRoute />} />
</Route>
2023-06-06 14:39:47 +00:00
)}
</Routes>
2023-06-06 08:52:50 +00:00
);
}
export default App;