diff --git a/src/Pages/AdminScreen/index.js b/src/Pages/AdminScreen/index.js deleted file mode 100644 index c9dd097..0000000 --- a/src/Pages/AdminScreen/index.js +++ /dev/null @@ -1,44 +0,0 @@ -import React from "react"; -import { logout } from "../../Auth/Auth"; -import MainButton from "../../Components/MainButton"; -import { history } from "../../history"; - -const AdminScreen = () => { - function handleClickCheckout() { - logout(); - history.push("/login"); - window.location.reload(); - } - - function handleProcess() { - history.push("/criar-processo"); - window.location.reload(); - } - - function handleViewProfile() { - history.push("/user"); - window.location.reload(); - } - - function handleViewCreateProfile() { - history.push("/criar-usuario"); - window.location.reload(); - } - - function handleChangePassword() { - history.push("/change-password"); - window.location.reload(); - } - - return ( - <> -
Voce esta logado como ADMIN
- - - - - - - ); -}; -export default AdminScreen; diff --git a/src/Pages/AdminScreen/styles.js b/src/Pages/AdminScreen/styles.js deleted file mode 100644 index e69de29..0000000 diff --git a/src/Routes.js b/src/Routes.js index be30c37..5aa0f80 100644 --- a/src/Routes.js +++ b/src/Routes.js @@ -1,7 +1,6 @@ import React from "react"; import { BrowserRouter, Redirect, Route, Switch } from "react-router-dom"; import { isAuthenticated } from "./Auth/Auth"; -// import from "./Pages/AdminScreen/"; import CreateProcess from "./Pages/CreateProcess"; import LoginScreen from "./Pages/LoginScreen"; import ViewProfile from "./Pages/ViewProfile"; @@ -31,7 +30,7 @@ const Routes = () => ( } /> } /> - } /> + } /> } /> } /> } />