Show validation errors on eligibility check

This commit is contained in:
GotPPay
2018-05-21 17:21:23 +02:00
parent 6ec37630f3
commit 7728262f29

View File

@@ -3,13 +3,10 @@ import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
export class ValidationErrorsInfoDialog extends React.Component {
constructor(props) {
super(props)
this.props = props;
this.state = {
state = {
open: this.props.open,
}
}
componentWillReceiveProps(newProps){
this.setState({open: newProps.open});
@@ -38,7 +35,7 @@ export class ValidationErrorsInfoDialog extends React.Component {
return (
<div>
<Dialog
title="Errors"
title="Erors"
actions={actions}
modal={this.props.modal ? this.props.modal : false}
open={this.state.open}