@stokr/components-library 2.1.8 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -738,7 +738,14 @@ var HeaderHoClass = /*#__PURE__*/function (_Component) {
|
|
|
738
738
|
_this2.setOpenModalStatus('confirmReset', false);
|
|
739
739
|
},
|
|
740
740
|
onModalSwitch: function onModalSwitch() {
|
|
741
|
-
_this2.
|
|
741
|
+
var location = _this2.props.location;
|
|
742
|
+
var query = new URLSearchParams(location === null || location === void 0 ? void 0 : location.search);
|
|
743
|
+
var userType = query.get('user_type');
|
|
744
|
+
if (userType && userType === 'sa') {
|
|
745
|
+
window.open("https://backoffice.".concat(process.env.REACT_APP_WEBSITE_DOMAIN));
|
|
746
|
+
} else {
|
|
747
|
+
_this2.switchOpenModal('confirmReset', 'login');
|
|
748
|
+
}
|
|
742
749
|
}
|
|
743
750
|
}), !isVerifyingEmail && /*#__PURE__*/_react.default.createElement(_VerifyEmailModal.default, {
|
|
744
751
|
id: "verify-email-popup",
|