Skip to content

Commit

Permalink
added comment and set to null
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandoncyu committed Sep 4, 2024
1 parent a1b9299 commit 13c1bd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ const activeStyle = {
// TODO: links/routing, mobile
const Header = () => {
const classes = useStyles();
const [isMenuOpen, setIsMenuOpen] = React.useState(false);
// this variable gets set to the DOM reference of IconButton, non-null value indicates the menu should be visible
const [isMenuOpen, setIsMenuOpen] = React.useState(null);

const handleMenuClick = event => {
if (Boolean(isMenuOpen)){
Expand Down

0 comments on commit 13c1bd5

Please sign in to comment.