Skip to content

Commit

Permalink
remove back icon from home screen and place Pocket Science Lab in top…
Browse files Browse the repository at this point in the history
… bar (fossasia#550)
  • Loading branch information
priyanshunayan authored and mariobehling committed Sep 4, 2019
1 parent cc6e950 commit 05de07e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/components/Appshell/Appshell.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ const Appshell = ({
case 'backlayout':
return 'Back Pin Layout';
default:
return undefined;
return 'Pocket Science Lab - PSLab';
}
};

Expand Down Expand Up @@ -434,13 +434,17 @@ const Appshell = ({
>
<DrawerIcon style={{ fontSize: 24 }} />
</IconButton>
<IconButton
className={classes.iconButton}
size="medium"
onClick={() => history.goBack()}
>
<BackIcon style={{ fontSize: 24 }} />
</IconButton>
{location.pathname !== '/' ? (
<IconButton
className={classes.iconButton}
size="medium"
onClick={() => history.goBack()}
>
<BackIcon style={{ fontSize: 24 }} />
</IconButton>
) : (
''
)}
</ButtonContainer>
<TitleContainer>{titleRenderer(location)}</TitleContainer>
<Spacer />
Expand Down

0 comments on commit 05de07e

Please sign in to comment.