mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 23:42:29 -05:00
NewUserModal: Fix typo, styling, extraneous import
This commit is contained in:
parent
c6cf817b2c
commit
b148dce3ce
@ -13,7 +13,6 @@ var ButtonGroup = ReactBootstrap.ButtonGroup;
|
|||||||
|
|
||||||
var models = require('../models');
|
var models = require('../models');
|
||||||
var User = models.User;
|
var User = models.User;
|
||||||
var Error = models.Error;
|
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: "NewUserModal",
|
displayName: "NewUserModal",
|
||||||
@ -70,7 +69,7 @@ module.exports = React.createClass({
|
|||||||
u.Email = this.state.email;
|
u.Email = this.state.email;
|
||||||
u.Password = this.state.password;
|
u.Password = this.state.password;
|
||||||
if (u.Password != this.state.confirm_password) {
|
if (u.Password != this.state.confirm_password) {
|
||||||
this.setState({error: "Error: password do not match"});
|
this.setState({error: "Error: passwords do not match"});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,7 +84,7 @@ module.exports = React.createClass({
|
|||||||
<Modal.Title>Create New user</Modal.Title>
|
<Modal.Title>Create New user</Modal.Title>
|
||||||
</Modal.Header>
|
</Modal.Header>
|
||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
<span color="red">{this.state.error}</span>
|
<span style={{color: "red"}}>{this.state.error}</span>
|
||||||
<Form horizontal onSubmit={this.handleSubmit}>
|
<Form horizontal onSubmit={this.handleSubmit}>
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<Col componentClass={ControlLabel} xs={2}>Name</Col>
|
<Col componentClass={ControlLabel} xs={2}>Name</Col>
|
||||||
|
Loading…
Reference in New Issue
Block a user