From d1d5cacddb1880d62d5a63e821fdfd02cf5d62a0 Mon Sep 17 00:00:00 2001 From: GotPPay Date: Mon, 28 May 2018 16:21:12 +0200 Subject: [PATCH] use draggable dialog --- .../Shared/ValidationErrorsInfoDialog.js | 57 +++++++++++-------- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/src/components/Shared/ValidationErrorsInfoDialog.js b/src/components/Shared/ValidationErrorsInfoDialog.js index bdffe15..e7b2e3c 100644 --- a/src/components/Shared/ValidationErrorsInfoDialog.js +++ b/src/components/Shared/ValidationErrorsInfoDialog.js @@ -28,30 +28,39 @@ export class ValidationErrorsInfoDialog extends React.Component { render() { - return ( -
- - {this.props.errorMessages.map(errorMessage => { - const oneValidationMessage = ({errorMessage.message}
); - const oneValidationMessageWithTab = (
  • {errorMessage.message}
  • ); - - if (errorMessage.field_name === "password-tab") { - return oneValidationMessageWithTab; - } else { - return oneValidationMessage; + const actions = [ + , + ]; + + return ( +
    + { + this.state.open && + + {this.props.errorMessages.map(errorMessage => { + return ( + + );}) + } + } - })} -
    -
    - ); + + ); + } } -} -module.exports = ValidationErrorsInfoDialog; \ No newline at end of file + module.exports = ValidationErrorsInfoDialog;