From cdccc3251bb1b8670eeb7077c81f9e31ade33f33 Mon Sep 17 00:00:00 2001 From: Victor Hugo Date: Mon, 3 May 2021 21:07:39 -0300 Subject: [PATCH 1/6] (#135) Alterando isStudent e isProfessor para o atributo do objeto Users Co-authored-by: Thiago Paiva --- app/src/components/LayoutApp/index.js | 5 +++-- app/src/components/Post/index.js | 10 +++++----- app/src/views/Login/index.js | 5 +++-- app/src/views/ProfessorSearch/index.js | 4 ++-- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/src/components/LayoutApp/index.js b/app/src/components/LayoutApp/index.js index f871c84..9c063d0 100644 --- a/app/src/components/LayoutApp/index.js +++ b/app/src/components/LayoutApp/index.js @@ -3,7 +3,8 @@ import { BtnEdition, Container, End, Main, ProfessorSearchStyle } from './styles import Menu from '../Menu'; import Input from '../Input'; import Button from '../Button'; -import {isStudent, logOut } from '../../services/Auth'; +import {logOut } from '../../services/Auth'; +import Users from '../../services/Users'; import { useHistory } from 'react-router'; import MenuOptions from '../MenuOptions'; @@ -32,7 +33,7 @@ export default function LayoutApp({ children }) { if (menuOptions === "") { return (setMenuOptions( -