Show validation errors on eligibility check
This commit is contained in:
@@ -3,13 +3,10 @@ import Dialog from 'material-ui/Dialog';
|
|||||||
import FlatButton from 'material-ui/FlatButton';
|
import FlatButton from 'material-ui/FlatButton';
|
||||||
|
|
||||||
export class ValidationErrorsInfoDialog extends React.Component {
|
export class ValidationErrorsInfoDialog extends React.Component {
|
||||||
constructor(props) {
|
|
||||||
super(props)
|
state = {
|
||||||
this.props = props;
|
|
||||||
this.state = {
|
|
||||||
open: this.props.open,
|
open: this.props.open,
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
componentWillReceiveProps(newProps){
|
componentWillReceiveProps(newProps){
|
||||||
this.setState({open: newProps.open});
|
this.setState({open: newProps.open});
|
||||||
@@ -38,7 +35,7 @@ export class ValidationErrorsInfoDialog extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Dialog
|
<Dialog
|
||||||
title="Errors"
|
title="Erors"
|
||||||
actions={actions}
|
actions={actions}
|
||||||
modal={this.props.modal ? this.props.modal : false}
|
modal={this.props.modal ? this.props.modal : false}
|
||||||
open={this.state.open}
|
open={this.state.open}
|
||||||
|
|||||||
Reference in New Issue
Block a user