From 23662e9fa142717bf64e8e4149fd1c6b87319c30 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Thu, 24 Jun 2021 16:13:29 +1000 Subject: [PATCH] Add children option to loading overlay --- src/components/LoadingOverlay.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/LoadingOverlay.js b/src/components/LoadingOverlay.js index 887f9a1..5e46bc0 100644 --- a/src/components/LoadingOverlay.js +++ b/src/components/LoadingOverlay.js @@ -3,7 +3,7 @@ import { Box } from "theme-ui"; import Spinner from "./Spinner"; -function LoadingOverlay({ bg }) { +function LoadingOverlay({ bg, children }) { return ( + {children} ); }