@visns-studio/visns-components 3.2.2 → 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.
@@ -611,6 +611,7 @@ const DataGrid = forwardRef(
611
611
 
612
612
  const res = await Download(form.export.url, 'POST', {
613
613
  filter: filterValue,
614
+ paramId: paramValue || '',
614
615
  });
615
616
 
616
617
  if (res.data.error) {
@@ -668,7 +669,7 @@ const DataGrid = forwardRef(
668
669
  {(form.create &&
669
670
  form.create.title &&
670
671
  form.create.title !== '') ||
671
- form.url ? (
672
+ (form.url && form.create.title) ? (
672
673
  <button
673
674
  className="btn"
674
675
  onClick={(e) => {
@@ -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
- {errorMsg === '' ? (
112
- <>
113
- <div className="formItem fwItem">
114
- <label className="fi__label">
115
- <input
116
- type="password"
117
- name="password"
118
- value={password}
119
- onChange={handleInputChange}
120
- tabIndex="1"
121
- className={passwordClass}
122
- />
123
- <span className="fi__span">
124
- Password
125
- </span>
126
- </label>
127
- </div>
128
- <div className="formItem fwItem">
129
- <label className="fi__label">
130
- <input
131
- type="password"
132
- name="passwordRepeat"
133
- value={passwordRepeat}
134
- onChange={handleInputChange}
135
- tabIndex="2"
136
- className={
137
- passwordRepeatClass
138
- }
139
- />
140
- <span className="fi__span">
141
- Re-type Password
142
- </span>
143
- </label>
144
- </div>
145
- <div className="formItem fwItem lastItem">
146
- <button
147
- className="btn"
148
- type="submit"
149
- tabIndex="3"
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.5",
9
+ "axios": "^1.6.7",
10
10
  "file-saver": "^2.0.5",
11
- "framer-motion": "^11.0.2",
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.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": {