Skip to content

Commit

Permalink
Remove unneccesary classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Jul 31, 2020
1 parent ee1f509 commit 75d1de1
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/CustomAppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,20 @@ import LightModeIcon from '@material-ui/icons/Brightness7';

export default function CustomAppBar(props){
const useStyles = makeStyles((theme) => ({
root: {
flexGrow: 1,
},
menuButton: {
marginLeft: theme.spacing(2),
},
title: {
flexGrow: 1,
flexGrow: "1"
},
tooltip: {
fontSize: theme.typography.pxToRem(14),
}
}));

const classes = useStyles(props.theme);

const toggleDarkMode = () => props.setDarkMode(!props.darkMode);

return(
<div className={classes.root}>
<>
<AppBar position="fixed">
<Toolbar>
<Typography variant="h6" className={classes.title}>
Expand All @@ -35,7 +29,6 @@ export default function CustomAppBar(props){

<Tooltip title={"Turn " + (props.darkMode ? "off" : "on") + " dark mode"}
arrow
classes={classes.tooltip}
onClick={toggleDarkMode}
TransitionComponent={Zoom}
>
Expand All @@ -51,6 +44,6 @@ export default function CustomAppBar(props){
</AppBar>
{/* Empty toolbar is to offset content below AppBar */}
<Toolbar />
</div>
</>
);
}

0 comments on commit 75d1de1

Please sign in to comment.