Center loading message
This commit is contained in:
parent
31414c5458
commit
e0d3c172a4
1 changed files with 4 additions and 1 deletions
|
@ -28,6 +28,7 @@ import { Room } from "./Room";
|
|||
import { GridDemo } from "./GridDemo";
|
||||
import { RegisterPage } from "./RegisterPage";
|
||||
import { LoginPage } from "./LoginPage";
|
||||
import { Center } from "./Layout";
|
||||
|
||||
export default function App() {
|
||||
const { protocol, host } = window.location;
|
||||
|
@ -40,7 +41,9 @@ export default function App() {
|
|||
<Router>
|
||||
<>
|
||||
{loading ? (
|
||||
<p>Loading...</p>
|
||||
<Center>
|
||||
<p>Loading...</p>
|
||||
</Center>
|
||||
) : (
|
||||
<Switch>
|
||||
<AuthenticatedRoute authenticated={authenticated} exact path="/">
|
||||
|
|
Loading…
Add table
Reference in a new issue