import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { Button, Menu, MenuItem, MenuList, Grid, Paper } from '@material-ui/core'; const styles = theme => ({ root: { display: 'flex', }, paper: { marginRight: theme.spacing(2), }, popperClose: { pointerEvents: 'none', }, }); class BasicMenu extends React.Component { state = { anchorEl: null, }; handleClick = event => { this.setState({ anchorEl: event.currentTarget }); }; handleClose = () => { this.setState({ anchorEl: null }); }; render() { const { anchorEl } = this.state; const { classes } = this.props; return ( Profile My account Logout Profile My account Logout ); } } BasicMenu.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(BasicMenu);