contentoh-components-library 21.0.68 → 21.0.69

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.0.68",
3
+ "version": "21.0.69",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -20,8 +20,6 @@ export const SignInLogin = (props) => {
20
20
  const [loading, setLoading] = useState(false);
21
21
  const [upgradePlanRedirect, setUpgradePlanRedirect] = useState(false);
22
22
  const [showEye, setShowEye] = useState(false);
23
- const eye = document.getElementById("Eye");
24
- const input = document.getElementById("passwordInput");
25
23
 
26
24
  const validate = async (e) => {
27
25
  setSignInError("");
@@ -105,7 +103,7 @@ export const SignInLogin = (props) => {
105
103
  }
106
104
  }
107
105
  };
108
-
106
+
109
107
  useEffect(() => {
110
108
  sessionStorage.getItem("resetPasswordProcess") &&
111
109
  sessionStorage.removeItem("resetPasswordProcess");
@@ -115,6 +113,8 @@ export const SignInLogin = (props) => {
115
113
  }, [upgradePlanRedirect]);
116
114
 
117
115
  const closeEye = (e) => {
116
+ const input = document.getElementById("passwordInput");
117
+ const eye = document.getElementById("Eye");
118
118
  if (input.type === "password") {
119
119
  input.type = "text";
120
120
  eye.style.opacity = 0.8;