Select Git revision
CardOptions.js
-
Lucas Eduardo Schoenfelder authoredLucas Eduardo Schoenfelder authored
CardOptions.js 2.62 KiB
/*Copyright (C) 2019 Centro de Computacao Cientifica e Software Livre
Departamento de Informatica - Universidade Federal do Parana
This file is part of Plataforma Integrada MEC.
Plataforma Integrada MEC is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Plataforma Integrada MEC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with Plataforma Integrada MEC. If not, see <http://www.gnu.org/licenses/>.*/
import React from 'react';
import Button from '@material-ui/core/Button';
import Menu from '@material-ui/core/Menu';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import MenuItem from '@material-ui/core/MenuItem';
import MoreVertIcon from '@material-ui/icons/MoreVert';
import OpenIcon from '@material-ui/icons/OpenInNew';
import DownloadIcon from '@material-ui/icons/CloudDownload';
import ShareIcon from '@material-ui/icons/Share';
import AddIcon from '@material-ui/icons/CreateNewFolder';
import ReportIcon from '@material-ui/icons/Error';
export default function SimpleMenu() {
const [anchorEl, setAnchorEl] = React.useState(null);
function handleClick(event) {
setAnchorEl(event.currentTarget);
}
function handleClose() {
setAnchorEl(null);
}
return (
<div style={{fontSize: "12px"}}>
<Button aria-controls="simple-menu" aria-haspopup="true" onClick={handleClick} style={{color : "#666"}}>
OPÇÕES <MoreVertIcon style={{color : "inherit"}}/>
</Button>
<Menu
id="simple-menu"
anchorEl={anchorEl}
keepMounted
open={Boolean(anchorEl)}
onClose={handleClose}
>
<MenuItem onClick={handleClose}>
<ListItemIcon><OpenIcon /></ListItemIcon>Abrir
</MenuItem>
<MenuItem onClick={handleClose}>
<ListItemIcon><DownloadIcon /></ListItemIcon>Baixar
</MenuItem>
<MenuItem onClick={handleClose}>
<ListItemIcon><ShareIcon /></ListItemIcon>Compartilhar
</MenuItem>
<MenuItem onClick={handleClose}>
<ListItemIcon><AddIcon /></ListItemIcon>Guardar
</MenuItem>
<MenuItem onClick={handleClose}>
<ListItemIcon><ReportIcon /></ListItemIcon>Reportar
</MenuItem>
</Menu>
</div>
);
}