Show validation errors on eligibility check

This commit is contained in:
GotPPay
2018-05-21 17:21:23 +02:00
parent 372b3883a0
commit 5202f91954

View File

@@ -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}