Add children option to loading overlay

This commit is contained in:
Mitchell McCaffrey 2021-06-24 16:13:29 +10:00
parent 6dfeb874a7
commit 23662e9fa1

View File

@ -3,7 +3,7 @@ import { Box } from "theme-ui";
import Spinner from "./Spinner";
function LoadingOverlay({ bg }) {
function LoadingOverlay({ bg, children }) {
return (
<Box
sx={{
@ -21,6 +21,7 @@ function LoadingOverlay({ bg }) {
bg={bg}
>
<Spinner />
{children}
</Box>
);
}