From 862ea8915e6c93cc8a51c59db285e584c5fb7c2e Mon Sep 17 00:00:00 2001 From: jpaulohe4rt Date: Tue, 19 Oct 2021 23:14:56 -0300 Subject: [PATCH 1/3] :fire: removing useless page fga-eps-mds/2021.1-Oraculo-Profile#113 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gabriel Santos Silva Araújos --- src/Pages/AdminScreen/index.js | 44 ---------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/Pages/AdminScreen/index.js 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; From 65137596903cedcd7798dce859a80a618c655e1d Mon Sep 17 00:00:00 2001 From: jpaulohe4rt Date: Tue, 19 Oct 2021 23:20:26 -0300 Subject: [PATCH 2/3] :fire: removing uselles useless page style fga-eps-mds/2021.1-Oraculo-Profile#113 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gabriel Santos Silva Araújos --- src/Pages/AdminScreen/styles.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 src/Pages/AdminScreen/styles.js diff --git a/src/Pages/AdminScreen/styles.js b/src/Pages/AdminScreen/styles.js deleted file mode 100644 index e69de29..0000000 From 6398fc83a303d535c1dbb8374916071a243a212b Mon Sep 17 00:00:00 2001 From: jpaulohe4rt Date: Tue, 19 Oct 2021 23:21:35 -0300 Subject: [PATCH 3/3] :art: improving router for homepage fga-eps-mds/2021.1-Oraculo-Profile#113 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gabriel Santos Silva Araújos --- src/Routes.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 = () => ( } /> } /> - } /> + } /> } /> } /> } />