Web: Fixed Confirm page background on loading

This commit is contained in:
Akmal Isomadinov 2022-12-27 18:10:34 +05:00
parent 26b1de6d97
commit ba3225daeb
2 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,7 @@ const Confirm = ({ match }) => {
//console.log("Confirm render");
const path = match.path;
return (
<ConfirmWrapper>
<>
<Switch>
<ConfirmRoute
forUnauthorized
@ -93,7 +93,7 @@ const Confirm = ({ match }) => {
{/* <Route component={Error404} /> */}
</Switch>
</ConfirmWrapper>
</>
);
};

View File

@ -3,6 +3,7 @@ import { observer, inject } from "mobx-react";
import Loader from "@docspace/components/loader";
import axios from "axios";
import { combineUrl } from "@docspace/common/utils";
import ConfirmWrapper from "./ConfirmWrapper";
let loadTimeout = null;
export default function withLoader(WrappedComponent) {
@ -112,7 +113,9 @@ export default function withLoader(WrappedComponent) {
return !isLoaded || !tReady ? (
<Loader className="pageLoader" type="rombs" size="40px" />
) : (
<WrappedComponent {...props} />
<ConfirmWrapper>
<WrappedComponent {...props} />
</ConfirmWrapper>
);
};