Merge branch 'master' into typescript

This commit is contained in:
Mitchell McCaffrey
2021-07-02 15:54:54 +10:00
157 changed files with 8114 additions and 4055 deletions

View File

@@ -1,8 +1,15 @@
import React from "react";
import { Box } from "theme-ui";
import Spinner from "./Spinner";
function LoadingOverlay({ bg }: any ) {
function LoadingOverlay({
bg,
children,
}: {
bg: string;
children?: React.ReactNode;
}) {
return (
<Box
sx={{
@@ -20,6 +27,7 @@ function LoadingOverlay({ bg }: any ) {
bg={bg}
>
<Spinner />
{children}
</Box>
);
}