Fix a bunch of layout issues
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { StackLayout, Button } from '../ui'
|
||||
import { Column, Button } from '../ui'
|
||||
import { regExpPattern } from 'regexp-pattern'
|
||||
import { Validator, ValidatedInput, ValidatedButton } from '../Validated'
|
||||
|
||||
@@ -95,30 +95,30 @@ export class ProfileForm extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<form className='profile-form' onSubmit={this.handleSubmit}>
|
||||
<StackLayout stackable>
|
||||
<StackLayout.Item>
|
||||
<Column stackable>
|
||||
<Column.Item>
|
||||
<ValidatedInput label='First Name' name='firstName' width={8}
|
||||
validator={this.state.validator} />
|
||||
</StackLayout.Item>
|
||||
<StackLayout.Item>
|
||||
</Column.Item>
|
||||
<Column.Item>
|
||||
<ValidatedInput label='Last Name' name='lastName' width={8}
|
||||
validator={this.state.validator} />
|
||||
</StackLayout.Item>
|
||||
<StackLayout.Item>
|
||||
</Column.Item>
|
||||
<Column.Item>
|
||||
<ValidatedInput label='Email' name='email' width={8} message='Required. Must be a valid email address.'
|
||||
validator={this.state.validator} />
|
||||
</StackLayout.Item>
|
||||
<StackLayout.Item>
|
||||
</Column.Item>
|
||||
<Column.Item>
|
||||
<Button fluid content={'Change Email'} label=' '
|
||||
width={4} onClick={this.props.onChangeEmail} />
|
||||
<Button fluid content={'Change Password'} label=' '
|
||||
width={4} onClick={this.props.onChangePassword} />
|
||||
</StackLayout.Item>
|
||||
<StackLayout.Item>
|
||||
</Column.Item>
|
||||
<Column.Item>
|
||||
<ValidatedButton submit primary width={4} size='medium' content='Save' label=' ' name='save'
|
||||
validator={this.state.validator} />
|
||||
</StackLayout.Item>
|
||||
</StackLayout>
|
||||
</Column.Item>
|
||||
</Column>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user