Center loading message
This commit is contained in:
@@ -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="/">
|
||||||
|
|||||||
Reference in New Issue
Block a user