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 { GridDemo } from "./GridDemo";
|
||||||
import { RegisterPage } from "./RegisterPage";
|
import { RegisterPage } from "./RegisterPage";
|
||||||
import { LoginPage } from "./LoginPage";
|
import { LoginPage } from "./LoginPage";
|
||||||
|
import { Center } from "./Layout";
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const { protocol, host } = window.location;
|
const { protocol, host } = window.location;
|
||||||
|
|
@ -40,7 +41,9 @@ export default function App() {
|
||||||
<Router>
|
<Router>
|
||||||
<>
|
<>
|
||||||
{loading ? (
|
{loading ? (
|
||||||
<p>Loading...</p>
|
<Center>
|
||||||
|
<p>Loading...</p>
|
||||||
|
</Center>
|
||||||
) : (
|
) : (
|
||||||
<Switch>
|
<Switch>
|
||||||
<AuthenticatedRoute authenticated={authenticated} exact path="/">
|
<AuthenticatedRoute authenticated={authenticated} exact path="/">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue