Add base UI config
This commit is contained in:
@ -1,25 +1,17 @@
|
||||
import React from 'react';
|
||||
import logo from './logo.svg';
|
||||
import './App.css';
|
||||
import { Route, Routes } from "react-router-dom";
|
||||
import "./App.css";
|
||||
import { AuthApi } from "./api/AuthApi";
|
||||
import { NotFoundRoute } from "./routes/NotFound";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<div className="App">
|
||||
<header className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
Edit <code>src/App.tsx</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
</header>
|
||||
</div>
|
||||
<Routes>
|
||||
{AuthApi.SignedIn ? (
|
||||
<Route path="*" element={<p>signed in</p>} />
|
||||
) : (
|
||||
<Route path="*" element={<NotFoundRoute />} />
|
||||
)}
|
||||
</Routes>
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user