import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import Draggable, { DraggableCore } from 'react-draggable'; // Both at the same time export class ValidationErrorsInfoDialog extends React.Component { state = { open: this.props.open, } componentWillReceiveProps(newProps){ this.setState({open: newProps.open}); } handleOpen = () => { this.setState({ open: true }); }; handleClose = () => { this.setState({ open: false }); this.props.onDismiss(); }; render() { const actions = [ , ]; return (
{this.props.errorMessages.map(errorMessage => { return (
{errorMessage.message}
); })}
); } } module.exports = ValidationErrorsInfoDialog;