mirror of
https://github.com/koodiklinikka/koodiklinikka.fi.git
synced 2026-02-11 22:51:50 +00:00
Merge pull request #24 from Keksike/hotfix/membership-form-input-order
Hotfix/membership form input order
This commit is contained in:
@@ -24,7 +24,7 @@ function validateEmail(email) {
|
||||
return re.test(email);
|
||||
}
|
||||
|
||||
const fieldNames = ['name', 'email', 'handle', 'address', 'city', 'postcode'];
|
||||
const fieldNames = ['name', 'email', 'handle', 'address', 'postcode', 'city'];
|
||||
|
||||
function getUserInfo(state) {
|
||||
return _.pick(state, fieldNames);
|
||||
@@ -124,7 +124,7 @@ module.exports = React.createClass({
|
||||
'input': true,
|
||||
'has-error': _.includes(fieldsWithErrors, fieldName),
|
||||
'half': fieldName === 'city' || fieldName === 'postcode',
|
||||
'left': fieldName === 'city'
|
||||
'left': fieldName === 'postcode'
|
||||
});
|
||||
|
||||
function showsErrorFor(field) {
|
||||
@@ -177,7 +177,6 @@ module.exports = React.createClass({
|
||||
description='Jäsenmaksu'
|
||||
email={this.state.email}
|
||||
image='https://avatars3.githubusercontent.com/u/10520119?v=3&s=200'
|
||||
locale='fi'
|
||||
name='Koodiklinikka ry'
|
||||
stripeKey={config.stripe.publicKey}
|
||||
token={this.onSubmit}
|
||||
|
||||
Reference in New Issue
Block a user