Skip to content
Snippets Groups Projects
Commit 1d9582c7 authored by Chris Beer's avatar Chris Beer
Browse files

Add 'List all open windows' menu item

parent 9ae2fc79
No related branches found
No related tags found
No related merge requests found
import React, { Component } from 'react';
import { compose } from 'redux';
import Menu from '@material-ui/core/Menu';
// import MenuItem from '@material-ui/core/MenuItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import MenuItem from '@material-ui/core/MenuItem';
import Typography from '@material-ui/core/Typography';
import ViewHeadlineIcon from '@material-ui/icons/ViewHeadline';
import { withStyles } from '@material-ui/core/styles';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
......@@ -16,7 +19,14 @@ export class WorkspaceMenu extends Component {
render() {
const { handleClose, anchorEl } = this.props;
return (
<Menu id="workspace-menu" anchorEl={anchorEl} open={Boolean(anchorEl)} onClose={handleClose} />
<Menu id="workspace-menu" anchorEl={anchorEl} open={Boolean(anchorEl)} onClose={handleClose}>
<MenuItem>
<ListItemIcon>
<ViewHeadlineIcon />
</ListItemIcon>
<Typography varient="inherit">List all open windows</Typography>
</MenuItem>
</Menu>
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment