Skip to content

Commit

Permalink
Update NavLink.js
Browse files Browse the repository at this point in the history
Eliminate two causes of console warnings. 
1. The 'elevation' prop is a number, not a string.
2. Due to a bug referenced in the following links, put a 'div' around 'children'. See jcoreio/material-ui-popup-state#11 and mui/material-ui#15903 (comment)
  • Loading branch information
kevinashworth authored Mar 21, 2021
1 parent ef7280f commit 5d56b92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Header/NavLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const NavLink = ({ heading, route, children, classes }) => {
}}
classes={{ paper: classes.paper, list: classes.menu }}
PopoverClasses={{ paper: classes.popover }}
elevation="0"
elevation={0}
>
{children}
<div>{children}</div>
</Menu>
)}
</>
Expand Down

0 comments on commit 5d56b92

Please sign in to comment.