Skip to content
Snippets Groups Projects
Commit 42f97ffe authored by Lucas Eduardo Schoenfelder's avatar Lucas Eduardo Schoenfelder
Browse files

removed unnecessary import and variables

parent 42511297
No related branches found
No related tags found
3 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system
......@@ -21,7 +21,6 @@ import styled from 'styled-components'
import CustomizedBreadcrumbs from '../Components/TabPanels/Breadcrumbs.js'
import { Store } from '../Store.js';
import Tab from '@material-ui/core/Tab';
import ModalAlterarAvatar from '../Components/ModalAlterarAvatar/ModalAlterarAvatar'
import TabPanelAtividades from '../Components/TabPanels/UserPageTabs/PanelAtividades.js'
import TabPanelMeusRecursos from '../Components/TabPanels/UserPageTabs/PanelMeusRecursos.js'
import TabPanelFavoritos from '../Components/TabPanels/UserPageTabs/PanelFavoritos.js'
......@@ -78,24 +77,13 @@ export default function UserPage (props){
props.history.push('/')
}
const [modalOpen, toggleModal] = useState(false)
return (
<>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,400,500&display=swap" rel="stylesheet"/>
{
state.userIsLoggedIn?
(
[
<React.Fragment>
<ModalAlterarAvatar
open={modalOpen}
handleClose={() => {toggleModal(false)}}
userAvatar={state.currentUser.avatar}
/>
<BackgroundDiv>
<CustomizedBreadcrumbs
values={["Minha área", tabs[tabValue]]}
/>
......@@ -154,8 +142,6 @@ export default function UserPage (props){
</Grid>
</Grid>
</BackgroundDiv>
</React.Fragment>
]
)
: (
<>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment