aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/Signup.js
diff options
context:
space:
mode:
authorLibravatar haraldox <hnaumann+github@gmail.com>2018-01-19 10:03:05 +0100
committerLibravatar haraldox <hnaumann+github@gmail.com>2018-01-19 10:03:05 +0100
commit34949a6a005df240fa79f679675a0de1f3839776 (patch)
tree3704f5e4df56c43ac6724cdadcd5d34e5aeb3897 /src/components/auth/Signup.js
parentMerge pull request #587 from meetfranz/feature/remove-miner (diff)
downloadferdium-app-34949a6a005df240fa79f679675a0de1f3839776.tar.gz
ferdium-app-34949a6a005df240fa79f679675a0de1f3839776.tar.zst
ferdium-app-34949a6a005df240fa79f679675a0de1f3839776.zip
fix property change due to mobx-react-form update
validate -> validators
Diffstat (limited to 'src/components/auth/Signup.js')
-rw-r--r--src/components/auth/Signup.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/auth/Signup.js b/src/components/auth/Signup.js
index a990a112e..219948274 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 validate: [required], 85 validators: [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 validate: [required], 100 validators: [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 validate: [required], 105 validators: [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 validate: [required, email], 110 validators: [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 validate: [required, minLength(6)], 119 validators: [required, minLength(6)],
120 type: 'password', 120 type: 'password',
121 }, 121 },
122 }, 122 },