bam32bittheme
Advanced tools
Comparing version 2.1.93-beta.15 to 2.1.93-beta.16
@@ -37,3 +37,3 @@ "use strict"; | ||
}); | ||
window.location.href = _Constant.PORTAL_PROD_URL + _Constant.portalRoutes.basename + _Constant.portalRoutes.redirect; | ||
window.location.href = _Constant.PORTAL_PROD_URL + (data === null || data === void 0 ? void 0 : data.hubRedirectPath); | ||
} | ||
@@ -40,0 +40,0 @@ } |
@@ -45,3 +45,2 @@ "use strict"; | ||
const [isScroll, setIsScroll] = (0, _react.useState)(false); | ||
const [fullPageLoader, setFullPageLoader] = (0, _react.useState)(false); | ||
const location = (0, _reactRouterDom.useLocation)(); | ||
@@ -117,3 +116,2 @@ const theme = (0, _material.useTheme)(); | ||
var _event$source; | ||
setFullPageLoader(true); | ||
(_event$source = event.source) === null || _event$source === void 0 || _event$source.postMessage('ok', { | ||
@@ -128,3 +126,3 @@ targetOrigin: "".concat(_Constant.HUB_PROD_URL) | ||
}); | ||
window.location.href = _Constant.PORTAL_PROD_URL + _Constant.portalRoutes.basename + _Constant.portalRoutes.redirect; | ||
window.location.href = _Constant.PORTAL_PROD_URL + (data === null || data === void 0 ? void 0 : data.hubRedirectPath); | ||
} | ||
@@ -142,12 +140,4 @@ } | ||
localStorage.removeItem('hubRedirectPath'); | ||
setFullPageLoader(false); | ||
} | ||
}, [location.pathname]); | ||
(0, _react.useEffect)(() => { | ||
if (localStorage.getItem('hubRedirectPath')) { | ||
setFullPageLoader(true); | ||
} else { | ||
setFullPageLoader(false); | ||
} | ||
}, [location.pathname]); | ||
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Main, { | ||
@@ -201,6 +191,3 @@ component: "main", | ||
onLocaleChange: onLocaleChange | ||
}), children)), fullPageLoader ? /*#__PURE__*/_react.default.createElement(_LoadingScreen.default, { | ||
loading: loadingScreen, | ||
text: "\u0130\u015Fleminiz devam ediyor, l\xFCtfen bekleyiniz..." | ||
}) : null, /*#__PURE__*/_react.default.createElement(_material.Zoom, { | ||
}), children)), /*#__PURE__*/_react.default.createElement(_material.Zoom, { | ||
in: isScroll | ||
@@ -207,0 +194,0 @@ }, /*#__PURE__*/_react.default.createElement(_material.Fab, { |
{ | ||
"name": "bam32bittheme", | ||
"version": "2.1.93-beta.15", | ||
"version": "2.1.93-beta.16", | ||
"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
1574809
5428