Skip to content

Commit

Permalink
Fix drawer navigation on small screens (#1715)
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Apr 3, 2024
1 parent 671aaa3 commit 78bb8c8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions asreview/webapp/src/Components/DrawerItemContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ const DrawerItemContainer = (props) => {
React.useEffect(() => {
if (project_id && isFetchingInfo) {
fetchProjectInfo();
} else {
setProjectInfo(null);
}
}, [fetchProjectInfo, project_id, isFetchingInfo]);

Expand Down Expand Up @@ -240,7 +238,7 @@ const DrawerItemContainer = (props) => {
onNavDrawer={props.onNavDrawer}
toggleNavDrawer={props.toggleNavDrawer}
/>
{projectInfo && (
<Fade in={props.onNavDrawer && projectInfo && !isFetchingInfo} unmountOnExit>
<ListItem
className={classes.projectInfo}
onClick={toggleGame}
Expand All @@ -251,7 +249,6 @@ const DrawerItemContainer = (props) => {
className={classes.stateElas}
/>

<Fade in={props.onNavDrawer} unmountOnExit>
<div className={classes.yourProject}>
<Typography variant="subtitle2">
Your project
Expand All @@ -264,9 +261,8 @@ const DrawerItemContainer = (props) => {
{projectInfo ? projectInfo.name : "Null"}
</Typography>
</div>
</Fade>
</ListItem>
)}
</Fade>

{projectInfo &&
drawerItemsProjectPage
Expand Down

0 comments on commit 78bb8c8

Please sign in to comment.