bam32bittheme
Advanced tools
Comparing version 2.1.93-beta.10 to 2.1.93-beta.11
@@ -45,2 +45,3 @@ "use strict"; | ||
const [isScroll, setIsScroll] = (0, _react.useState)(false); | ||
const [fullPageLoader, setFullPageLoader] = (0, _react.useState)(false); | ||
const location = (0, _reactRouterDom.useLocation)(); | ||
@@ -143,4 +144,25 @@ const theme = (0, _material.useTheme)(); | ||
localStorage.removeItem('hubRedirectPath'); | ||
setFullPageLoader(false); | ||
} | ||
}, [location.pathname]); | ||
(0, _react.useEffect)(() => { | ||
if (localStorage.getItem('hubRedirectPath')) { | ||
setFullPageLoader(true); | ||
} else { | ||
setFullPageLoader(false); | ||
} | ||
}, [location.pathname]); | ||
if (fullPageLoader) { | ||
return /*#__PURE__*/_react.default.createElement(_material.Stack, { | ||
position: "fixed", | ||
top: 0, | ||
bottom: 0, | ||
left: 0, | ||
right: 0, | ||
zIndex: 999, | ||
bgcolor: "background.default", | ||
justifyContent: "center", | ||
alignItems: "center" | ||
}, /*#__PURE__*/_react.default.createElement(_material.CircularProgress, null)); | ||
} | ||
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Main, { | ||
@@ -147,0 +169,0 @@ component: "main", |
{ | ||
"name": "bam32bittheme", | ||
"version": "2.1.93-beta.10", | ||
"version": "2.1.93-beta.11", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "32bit Theme for Material UI v5.x", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1575719
5455