fix light theme AppBar

This commit is contained in:
Aria Moradi 2021-01-23 01:36:56 +03:30
parent 84676b9156
commit ed7bb408a3

View File

@ -41,7 +41,7 @@ export default function NavBar() {
const { title } = useContext(NavBarTitle); const { title } = useContext(NavBarTitle);
const open = Boolean(anchorEl); const open = Boolean(anchorEl);
const { setDarkTheme } = useContext(DarkTheme); const { darkTheme, setDarkTheme } = useContext(DarkTheme);
const handleMenu = (event: React.MouseEvent<HTMLElement>) => { const handleMenu = (event: React.MouseEvent<HTMLElement>) => {
setAnchorEl(event.currentTarget); setAnchorEl(event.currentTarget);
@ -53,7 +53,7 @@ export default function NavBar() {
return ( return (
<div className={classes.root}> <div className={classes.root}>
<AppBar position="static" color="default"> <AppBar position="static" color={darkTheme ? 'default' : 'primary'}>
<Toolbar> <Toolbar>
<IconButton <IconButton
edge="start" edge="start"