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