contentoh-components-library 21.0.67 → 21.0.70
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.
|
Binary file
|
|
@@ -80,9 +80,6 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
80
80
|
showEye = _useState16[0],
|
|
81
81
|
setShowEye = _useState16[1];
|
|
82
82
|
|
|
83
|
-
var eye = document.getElementById("Eye");
|
|
84
|
-
var input = document.getElementById("passwordInput");
|
|
85
|
-
|
|
86
83
|
var validate = /*#__PURE__*/function () {
|
|
87
84
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(e) {
|
|
88
85
|
var valid, email, password, session, userGroup, response, user, company;
|
|
@@ -206,6 +203,9 @@ var SignInLogin = function SignInLogin(props) {
|
|
|
206
203
|
}, [upgradePlanRedirect]);
|
|
207
204
|
|
|
208
205
|
var closeEye = function closeEye(e) {
|
|
206
|
+
var input = document.getElementById("passwordInput");
|
|
207
|
+
var eye = document.getElementById("Eye");
|
|
208
|
+
|
|
209
209
|
if (input.type === "password") {
|
|
210
210
|
input.type = "text";
|
|
211
211
|
eye.style.opacity = 0.8;
|
package/package.json
CHANGED
|
@@ -19,9 +19,6 @@ export const SignInLogin = (props) => {
|
|
|
19
19
|
const [signInError, setSignInError] = useState("");
|
|
20
20
|
const [loading, setLoading] = useState(false);
|
|
21
21
|
const [upgradePlanRedirect, setUpgradePlanRedirect] = useState(false);
|
|
22
|
-
const [showEye, setShowEye] = useState(false);
|
|
23
|
-
const eye = document.getElementById("Eye");
|
|
24
|
-
const input = document.getElementById("passwordInput");
|
|
25
22
|
|
|
26
23
|
const validate = async (e) => {
|
|
27
24
|
setSignInError("");
|
|
@@ -105,6 +102,7 @@ export const SignInLogin = (props) => {
|
|
|
105
102
|
}
|
|
106
103
|
}
|
|
107
104
|
};
|
|
105
|
+
|
|
108
106
|
useEffect(() => {
|
|
109
107
|
sessionStorage.getItem("resetPasswordProcess") &&
|
|
110
108
|
sessionStorage.removeItem("resetPasswordProcess");
|
|
@@ -114,6 +112,8 @@ export const SignInLogin = (props) => {
|
|
|
114
112
|
}, [upgradePlanRedirect]);
|
|
115
113
|
|
|
116
114
|
const closeEye = (e) => {
|
|
115
|
+
const input = document.getElementById("passwordInput");
|
|
116
|
+
const eye = document.getElementById("Eye");
|
|
117
117
|
if (input.type === "password") {
|
|
118
118
|
input.type = "text";
|
|
119
119
|
eye.style.opacity = 0.8;
|
|
@@ -162,7 +162,6 @@ export const SignInLogin = (props) => {
|
|
|
162
162
|
className="icon"
|
|
163
163
|
id="Eye"
|
|
164
164
|
onClick={(e) => {
|
|
165
|
-
setShowEye(!showEye);
|
|
166
165
|
closeEye(e);
|
|
167
166
|
}}
|
|
168
167
|
></img>
|