diff --git a/Source/DesignSystem/atoms/LoadingSpinner/LoadingSpinner.tsx b/Source/DesignSystem/atoms/LoadingSpinner/LoadingSpinner.tsx index 6aac1dc58..ed874db2d 100644 --- a/Source/DesignSystem/atoms/LoadingSpinner/LoadingSpinner.tsx +++ b/Source/DesignSystem/atoms/LoadingSpinner/LoadingSpinner.tsx @@ -2,16 +2,20 @@ // Licensed under the MIT license. See LICENSE file in the project root for full license information. import React from 'react'; +import { createPortal } from 'react-dom'; import { Box, CircularProgress, CircularProgressProps } from '@mui/material'; export const LoadingSpinner = (props: CircularProgressProps) => - + ; // TODO: Move this to a separate component. export const FullPageLoadingSpinner = (props: CircularProgressProps) => - - - ; + createPortal( + + + , + document.body, + ); diff --git a/Source/SelfService/Web/index.ejs b/Source/SelfService/Web/index.ejs index d7f7fdb51..fe92c5c80 100644 --- a/Source/SelfService/Web/index.ejs +++ b/Source/SelfService/Web/index.ejs @@ -17,7 +17,7 @@ - +
<% if (htmlWebpackPlugin.options.metadata.server) { %>