@visns-studio/visns-components 3.2.3 → 3.2.4
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.
|
@@ -26,7 +26,8 @@ const Reset = ({ logo }) => {
|
|
|
26
26
|
{ email: email },
|
|
27
27
|
function (result) {
|
|
28
28
|
if (result.error === '') {
|
|
29
|
-
setEmail(
|
|
29
|
+
setEmail('');
|
|
30
|
+
toast.success(
|
|
30
31
|
'You have successfully requested to reset your password, an email will be sent shortly. Please follow the instruction on the email.'
|
|
31
32
|
);
|
|
32
33
|
} else {
|
|
@@ -10,7 +10,6 @@ import CustomFetch from '../Fetch';
|
|
|
10
10
|
const Verify = ({ logo }) => {
|
|
11
11
|
const navigate = useNavigate();
|
|
12
12
|
const { code } = useParams();
|
|
13
|
-
|
|
14
13
|
const [formData, setFormData] = useState({
|
|
15
14
|
password: '',
|
|
16
15
|
passwordRepeat: '',
|
|
@@ -108,53 +107,45 @@ const Verify = ({ logo }) => {
|
|
|
108
107
|
<div className="formItem fwItem">
|
|
109
108
|
<h1>Reset your password</h1>
|
|
110
109
|
</div>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
<
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
>
|
|
151
|
-
Reset
|
|
152
|
-
</button>
|
|
153
|
-
</div>
|
|
154
|
-
</>
|
|
155
|
-
) : (
|
|
156
|
-
<p>{errorMsg}</p>
|
|
157
|
-
)}
|
|
110
|
+
<div className="formItem fwItem">
|
|
111
|
+
<label className="fi__label">
|
|
112
|
+
<input
|
|
113
|
+
type="password"
|
|
114
|
+
name="password"
|
|
115
|
+
value={password}
|
|
116
|
+
onChange={handleInputChange}
|
|
117
|
+
tabIndex="1"
|
|
118
|
+
className={passwordClass}
|
|
119
|
+
/>
|
|
120
|
+
<span className="fi__span">
|
|
121
|
+
Password
|
|
122
|
+
</span>
|
|
123
|
+
</label>
|
|
124
|
+
</div>
|
|
125
|
+
<div className="formItem fwItem">
|
|
126
|
+
<label className="fi__label">
|
|
127
|
+
<input
|
|
128
|
+
type="password"
|
|
129
|
+
name="passwordRepeat"
|
|
130
|
+
value={passwordRepeat}
|
|
131
|
+
onChange={handleInputChange}
|
|
132
|
+
tabIndex="2"
|
|
133
|
+
className={passwordRepeatClass}
|
|
134
|
+
/>
|
|
135
|
+
<span className="fi__span">
|
|
136
|
+
Re-type Password
|
|
137
|
+
</span>
|
|
138
|
+
</label>
|
|
139
|
+
</div>
|
|
140
|
+
<div className="formItem fwItem lastItem">
|
|
141
|
+
<button
|
|
142
|
+
className="btn"
|
|
143
|
+
type="submit"
|
|
144
|
+
tabIndex="3"
|
|
145
|
+
>
|
|
146
|
+
Reset
|
|
147
|
+
</button>
|
|
148
|
+
</div>
|
|
158
149
|
</div>
|
|
159
150
|
</Reveal>
|
|
160
151
|
</form>
|
package/package.json
CHANGED
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
"akar-icons": "^1.9.30",
|
|
7
7
|
"array-move": "^4.0.0",
|
|
8
8
|
"awesome-debounce-promise": "^2.1.0",
|
|
9
|
-
"axios": "^1.6.
|
|
9
|
+
"axios": "^1.6.7",
|
|
10
10
|
"file-saver": "^2.0.5",
|
|
11
|
-
"framer-motion": "^11.0.
|
|
11
|
+
"framer-motion": "^11.0.3",
|
|
12
12
|
"html-react-parser": "^5.1.1",
|
|
13
13
|
"lodash": "^4.17.21",
|
|
14
14
|
"lodash.debounce": "^4.0.8",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-dom": "^17.0.1"
|
|
50
50
|
},
|
|
51
51
|
"name": "@visns-studio/visns-components",
|
|
52
|
-
"version": "3.2.
|
|
52
|
+
"version": "3.2.4",
|
|
53
53
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
54
54
|
"main": "index.js",
|
|
55
55
|
"scripts": {
|