homeflowjs 1.0.21 → 1.0.22

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "sideEffects": [
5
5
  "modal/**/*",
6
6
  "user/default-profile/**/*",
@@ -7,7 +7,16 @@ import { setCurrentUser } from '../../actions/user.actions';
7
7
  import notify from '../../app/notify';
8
8
 
9
9
  const ResetPasswordForm = ({
10
- user, setCurrentUser, inputClass, buttonClass, buttonSpanClass, pattern, patternTitle, redirect,
10
+ user,
11
+ setCurrentUser,
12
+ inputClass,
13
+ buttonClass,
14
+ buttonSpanClass,
15
+ pattern,
16
+ patternTitle,
17
+ redirect,
18
+ newPasswordInputProps,
19
+ confirmPasswordInputProps,
11
20
  }) => {
12
21
  const [password, setPassword] = useState('');
13
22
  const [passwordConfirmation, setPasswordConfirmation] = useState('');
@@ -47,6 +56,7 @@ const ResetPasswordForm = ({
47
56
  className={inputClass}
48
57
  pattern={pattern}
49
58
  title={patternTitle}
59
+ {...newPasswordInputProps}
50
60
  />
51
61
  <input
52
62
  name="password_confirmation"
@@ -57,6 +67,7 @@ const ResetPasswordForm = ({
57
67
  className={inputClass}
58
68
  pattern={pattern}
59
69
  title={patternTitle}
70
+ {...confirmPasswordInputProps}
60
71
  />
61
72
 
62
73
  <button
@@ -87,6 +98,8 @@ ResetPasswordForm.defaultProps = {
87
98
  pattern: null,
88
99
  patternTitle: null,
89
100
  redirect: '/user',
101
+ newPasswordInputProps: {},
102
+ confirmPasswordInputProps: {},
90
103
  };
91
104
 
92
105
  const mapStateToProps = (state) => ({