import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import Avatar from '@material-ui/core/Avatar'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemAvatar from '@material-ui/core/ListItemAvatar'; import ListItemText from '@material-ui/core/ListItemText'; import DialogTitle from '@material-ui/core/DialogTitle'; import Dialog from '@material-ui/core/Dialog'; import PersonIcon from '@material-ui/icons/Person'; import EditIcon from '@material-ui/icons/Edit'; import DeleteOutline from '@material-ui/icons/Delete'; import Typography from '@material-ui/core/Typography'; import blue from '@material-ui/core/colors/blue'; const styles = { list: { width: '100%', position: 'absolute', bottom: 0, margin: 0 } }; class SimpleDialog extends React.Component { handleClose = () => { this.props.onClose(this.props.selectedValue); }; handleListItemClick = value => { this.props.onClose(value); }; render() { const { classes, onClose, selectedValue, ...other } = this.props; return ( this.handleListItemClick('edit')} key="edit"> this.handleListItemClick('release')}> ); } } SimpleDialog.propTypes = { classes: PropTypes.object.isRequired, onClose: PropTypes.func, selectedValue: PropTypes.string, }; const SimpleDialogWrapped = withStyles(styles)(SimpleDialog); export default SimpleDialogWrapped;