diff --git a/src/Admin/Components/Components/Unauthorized.js b/src/Admin/Components/Components/Unauthorized.js new file mode 100644 index 0000000000000000000000000000000000000000..decfa6b5aa2504d3aedb0199faa97c66b84025d0 --- /dev/null +++ b/src/Admin/Components/Components/Unauthorized.js @@ -0,0 +1,41 @@ +/*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, {useState} from 'react'; +import SnackBar from '../../../Components/SnackbarComponent'; +import { Link } from 'react-router-dom'; +const Unauthorized = () => { + + const [openSnack, setOpenSnack] = useState(true); + + return ( + <div style={{ textAlign: 'center' }}> + <SnackBar + severity='warning' + text='Você não tem as permissões necessárias' + snackbarOpen={openSnack} + handleClose={() => setOpenSnack(false)} + /> + <Link to='/'> + Redirecionar para home + </Link> + </div> + ); +} + +export default Unauthorized; \ No newline at end of file