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
Branches
Tags
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' ...@@ -21,7 +21,6 @@ import styled from 'styled-components'
import CustomizedBreadcrumbs from '../Components/TabPanels/Breadcrumbs.js' import CustomizedBreadcrumbs from '../Components/TabPanels/Breadcrumbs.js'
import { Store } from '../Store.js'; import { Store } from '../Store.js';
import Tab from '@material-ui/core/Tab'; import Tab from '@material-ui/core/Tab';
import ModalAlterarAvatar from '../Components/ModalAlterarAvatar/ModalAlterarAvatar'
import TabPanelAtividades from '../Components/TabPanels/UserPageTabs/PanelAtividades.js' import TabPanelAtividades from '../Components/TabPanels/UserPageTabs/PanelAtividades.js'
import TabPanelMeusRecursos from '../Components/TabPanels/UserPageTabs/PanelMeusRecursos.js' import TabPanelMeusRecursos from '../Components/TabPanels/UserPageTabs/PanelMeusRecursos.js'
import TabPanelFavoritos from '../Components/TabPanels/UserPageTabs/PanelFavoritos.js' import TabPanelFavoritos from '../Components/TabPanels/UserPageTabs/PanelFavoritos.js'
...@@ -78,24 +77,13 @@ export default function UserPage (props){ ...@@ -78,24 +77,13 @@ export default function UserPage (props){
props.history.push('/') props.history.push('/')
} }
const [modalOpen, toggleModal] = useState(false)
return ( return (
<> <>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,400,500&display=swap" rel="stylesheet"/> <link href="https://fonts.googleapis.com/css?family=Roboto:100,400,500&display=swap" rel="stylesheet"/>
{ {
state.userIsLoggedIn? state.userIsLoggedIn?
( (
[
<React.Fragment>
<ModalAlterarAvatar
open={modalOpen}
handleClose={() => {toggleModal(false)}}
userAvatar={state.currentUser.avatar}
/>
<BackgroundDiv> <BackgroundDiv>
<CustomizedBreadcrumbs <CustomizedBreadcrumbs
values={["Minha área", tabs[tabValue]]} values={["Minha área", tabs[tabValue]]}
/> />
...@@ -154,8 +142,6 @@ export default function UserPage (props){ ...@@ -154,8 +142,6 @@ export default function UserPage (props){
</Grid> </Grid>
</Grid> </Grid>
</BackgroundDiv> </BackgroundDiv>
</React.Fragment>
]
) )
: ( : (
<> <>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment