fix nav buttons

This commit is contained in:
Aria Moradi 2021-01-23 02:57:32 +03:30
parent ca9c671886
commit fbc71ce781

View File

@ -91,8 +91,18 @@ export default function NavBar() {
open={open}
onClose={handleClose}
>
<MenuItem onClick={() => setDarkTheme(true)}>Dark Theme</MenuItem>
<MenuItem onClick={() => setDarkTheme(false)}>Light Theme</MenuItem>
<MenuItem
onClick={() => { setDarkTheme(true); handleClose(); }}
>
Dark Theme
</MenuItem>
<MenuItem
onClick={() => { setDarkTheme(false); handleClose(); }}
>
Light Theme
</MenuItem>
</Menu>
</Toolbar>
</AppBar>