Skip to content

Commit

Permalink
Change CustomAppBar to sticky layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Aug 5, 2020
1 parent dcb0c62 commit ecce172
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/CustomAppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function CustomAppBar(props){

return(
<>
<AppBar position="fixed">
<AppBar position="sticky">
<Toolbar>
<Typography variant="h6" className={classes.title}>
{props.title}
Expand All @@ -42,8 +42,6 @@ export default function CustomAppBar(props){
</IconButton>
</Toolbar>
</AppBar>
{/* Empty toolbar is to offset content below AppBar */}
<Toolbar />
</>
);
}

0 comments on commit ecce172

Please sign in to comment.