diff options
author | 2018-01-19 11:54:13 +0100 | |
---|---|---|
committer | 2018-01-19 11:54:13 +0100 | |
commit | b595dcb997941b418fa8bb1609f54aeb978c91da (patch) | |
tree | 167f01c64bb904309337a8620f7bc79cf5db79dc /src/components/auth | |
parent | change directory structure for subscription (diff) | |
download | ferdium-app-b595dcb997941b418fa8bb1609f54aeb978c91da.tar.gz ferdium-app-b595dcb997941b418fa8bb1609f54aeb978c91da.tar.zst ferdium-app-b595dcb997941b418fa8bb1609f54aeb978c91da.zip |
Revert "fix property change due to mobx-react-form update"
This reverts commit 34949a6a005df240fa79f679675a0de1f3839776.
Diffstat (limited to 'src/components/auth')
-rw-r--r-- | src/components/auth/Invite.js | 2 | ||||
-rw-r--r-- | src/components/auth/Login.js | 4 | ||||
-rw-r--r-- | src/components/auth/Password.js | 2 | ||||
-rw-r--r-- | src/components/auth/Signup.js | 10 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/components/auth/Invite.js b/src/components/auth/Invite.js index a420f98a2..c1d815dcd 100644 --- a/src/components/auth/Invite.js +++ b/src/components/auth/Invite.js | |||
@@ -53,7 +53,7 @@ export default class Invite extends Component { | |||
53 | email: { | 53 | email: { |
54 | label: this.context.intl.formatMessage(messages.emailLabel), | 54 | label: this.context.intl.formatMessage(messages.emailLabel), |
55 | // value: '', | 55 | // value: '', |
56 | validators: [email], | 56 | validate: [email], |
57 | placeholder: this.context.intl.formatMessage(messages.emailLabel), | 57 | placeholder: this.context.intl.formatMessage(messages.emailLabel), |
58 | }, | 58 | }, |
59 | })], | 59 | })], |
diff --git a/src/components/auth/Login.js b/src/components/auth/Login.js index 4a3cd6776..67e92849d 100644 --- a/src/components/auth/Login.js +++ b/src/components/auth/Login.js | |||
@@ -76,12 +76,12 @@ export default class Login extends Component { | |||
76 | email: { | 76 | email: { |
77 | label: this.context.intl.formatMessage(messages.emailLabel), | 77 | label: this.context.intl.formatMessage(messages.emailLabel), |
78 | value: '', | 78 | value: '', |
79 | validators: [required, email], | 79 | validate: [required, email], |
80 | }, | 80 | }, |
81 | password: { | 81 | password: { |
82 | label: this.context.intl.formatMessage(messages.passwordLabel), | 82 | label: this.context.intl.formatMessage(messages.passwordLabel), |
83 | value: '', | 83 | value: '', |
84 | validators: [required], | 84 | validate: [required], |
85 | type: 'password', | 85 | type: 'password', |
86 | }, | 86 | }, |
87 | }, | 87 | }, |
diff --git a/src/components/auth/Password.js b/src/components/auth/Password.js index 5bcc80b6e..d2b196853 100644 --- a/src/components/auth/Password.js +++ b/src/components/auth/Password.js | |||
@@ -60,7 +60,7 @@ export default class Password extends Component { | |||
60 | email: { | 60 | email: { |
61 | label: this.context.intl.formatMessage(messages.emailLabel), | 61 | label: this.context.intl.formatMessage(messages.emailLabel), |
62 | value: '', | 62 | value: '', |
63 | validators: [required, email], | 63 | validate: [required, email], |
64 | }, | 64 | }, |
65 | }, | 65 | }, |
66 | }, this.context.intl); | 66 | }, this.context.intl); |
diff --git a/src/components/auth/Signup.js b/src/components/auth/Signup.js index 219948274..a990a112e 100644 --- a/src/components/auth/Signup.js +++ b/src/components/auth/Signup.js | |||
@@ -82,7 +82,7 @@ export default class Signup extends Component { | |||
82 | fields: { | 82 | fields: { |
83 | accountType: { | 83 | accountType: { |
84 | value: 'individual', | 84 | value: 'individual', |
85 | validators: [required], | 85 | validate: [required], |
86 | options: [{ | 86 | options: [{ |
87 | value: 'individual', | 87 | value: 'individual', |
88 | label: 'Individual', | 88 | label: 'Individual', |
@@ -97,17 +97,17 @@ export default class Signup extends Component { | |||
97 | firstname: { | 97 | firstname: { |
98 | label: this.context.intl.formatMessage(messages.firstnameLabel), | 98 | label: this.context.intl.formatMessage(messages.firstnameLabel), |
99 | value: '', | 99 | value: '', |
100 | validators: [required], | 100 | validate: [required], |
101 | }, | 101 | }, |
102 | lastname: { | 102 | lastname: { |
103 | label: this.context.intl.formatMessage(messages.lastnameLabel), | 103 | label: this.context.intl.formatMessage(messages.lastnameLabel), |
104 | value: '', | 104 | value: '', |
105 | validators: [required], | 105 | validate: [required], |
106 | }, | 106 | }, |
107 | email: { | 107 | email: { |
108 | label: this.context.intl.formatMessage(messages.emailLabel), | 108 | label: this.context.intl.formatMessage(messages.emailLabel), |
109 | value: '', | 109 | value: '', |
110 | validators: [required, email], | 110 | validate: [required, email], |
111 | }, | 111 | }, |
112 | organization: { | 112 | organization: { |
113 | label: this.context.intl.formatMessage(messages.companyLabel), | 113 | label: this.context.intl.formatMessage(messages.companyLabel), |
@@ -116,7 +116,7 @@ export default class Signup extends Component { | |||
116 | password: { | 116 | password: { |
117 | label: this.context.intl.formatMessage(messages.passwordLabel), | 117 | label: this.context.intl.formatMessage(messages.passwordLabel), |
118 | value: '', | 118 | value: '', |
119 | validators: [required, minLength(6)], | 119 | validate: [required, minLength(6)], |
120 | type: 'password', | 120 | type: 'password', |
121 | }, | 121 | }, |
122 | }, | 122 | }, |