contentoh-components-library 21.0.35 → 21.0.36
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.
|
@@ -195,6 +195,9 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
195
195
|
(0, _react.useEffect)(function () {
|
|
196
196
|
sessionStorage.getItem("resetPasswordProcess") && sessionStorage.removeItem("resetPasswordProcess");
|
|
197
197
|
}, []);
|
|
198
|
+
(0, _react.useEffect)(function () {
|
|
199
|
+
if (upgradePlanRedirect) setLoading(false);
|
|
200
|
+
}, [upgradePlanRedirect]);
|
|
198
201
|
return loading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.Loading, {}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
199
202
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
200
203
|
className: "home-login",
|
package/package.json
CHANGED
|
@@ -91,7 +91,7 @@ export const SignInLogin = (props) => {
|
|
|
91
91
|
} catch (error) {
|
|
92
92
|
console.log(error);
|
|
93
93
|
setLoading(false);
|
|
94
|
-
console.log("error 1")
|
|
94
|
+
console.log("error 1");
|
|
95
95
|
if (error.code === "NotAuthorizedException") {
|
|
96
96
|
setSignInError("NotAuthorizedException");
|
|
97
97
|
} else if (error.code === "UserNotConfirmedException") {
|
|
@@ -105,7 +105,7 @@ export const SignInLogin = (props) => {
|
|
|
105
105
|
props.setPaso(5);
|
|
106
106
|
} else {
|
|
107
107
|
setSignInError("Error");
|
|
108
|
-
console.log("error 2")
|
|
108
|
+
console.log("error 2");
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -114,6 +114,9 @@ export const SignInLogin = (props) => {
|
|
|
114
114
|
sessionStorage.getItem("resetPasswordProcess") &&
|
|
115
115
|
sessionStorage.removeItem("resetPasswordProcess");
|
|
116
116
|
}, []);
|
|
117
|
+
useEffect(() => {
|
|
118
|
+
if (upgradePlanRedirect) setLoading(false);
|
|
119
|
+
}, [upgradePlanRedirect]);
|
|
117
120
|
return loading ? (
|
|
118
121
|
<Loading />
|
|
119
122
|
) : (
|