Skip to content
Snippets Groups Projects
Select Git revision
  • Develop
  • master default protected
  • Develop_copy_to_implement_acessibility
  • Develop_copy_to_implement_acessibility_in_admin
  • vinicius_accessibility_from_copy
  • luis_accesibility_before_develop
  • vinicius_accessiblity
  • Fixing_bugs
  • Otimizando_Vinicius
  • Password_recovery_fix
  • fix_admin_bugs_luis
  • luis_gamefication
  • gamificacaoLucas
  • GameficationAdmin
  • fixHomeScreen
  • Fix_perfil
  • fix_remaining_bugs
  • homologa
  • centraliza-axios
  • Gamification
  • v1.2.0
  • v1.1.1
  • v1.1.0
  • V1.0.1
  • V1.0.0
  • V1.0.0-RC
26 results

CardOptions.js

Blame
  • 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>
      );
    }