Add loading state (#1027)

* add loading state

* update snapshots

* add border radius

* fix comment breaking build jsx
This commit is contained in:
David Luzar 2020-03-26 18:28:26 +01:00 committed by GitHub
parent d8708cb14f
commit cac2dda5ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 214 additions and 85 deletions

View file

@ -15,6 +15,7 @@ import { Section } from "./Section";
import { RoomDialog } from "./RoomDialog";
import { SCROLLBAR_WIDTH, SCROLLBAR_MARGIN } from "../scene/scrollbars";
import { LockIcon } from "./LockIcon";
import { LoadingMessage } from "./LoadingMessage";
type MobileMenuProps = {
appState: AppState;
@ -41,6 +42,7 @@ export function MobileMenu({
}: MobileMenuProps) {
return (
<>
{appState.isLoading && <LoadingMessage />}
<FixedSideContainer side="top">
<Section heading="shapes">
{(heading) => (