Center loading message
This commit is contained in:
1 parent
31414c5458
commit
e0d3c172a4
1 file changed
+3
@@ -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 ? (
|
||||||
|
<Center>
|
||||||
<p>Loading...</p>
|
<p>Loading...</p>
|
||||||
|
</Center>
|
||||||
) : (
|
) : (
|
||||||
<Switch>
|
<Switch>
|
||||||
<AuthenticatedRoute authenticated={authenticated} exact path="/">
|
<AuthenticatedRoute authenticated={authenticated} exact path="/">
|
||||||
|
|||||||
Reference in new issue
Block a user