Skip to content

Commit

Permalink
fix(menu): content typing in menu items
Browse files Browse the repository at this point in the history
Co-authored-by: MarcosViniciusPC <[email protected]>
  • Loading branch information
santanasara and MarcosViniciusPC authored Apr 30, 2024
1 parent 5d33faf commit 507af29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/Menu/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ Menu.propTypes = {
/** Menu contents, has a content parameter, an id and a handleClick function. */
items: PropTypes.arrayOf(
PropTypes.shape({
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
content: PropTypes.ReactNode,
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
content: PropTypes.node.isRequired,
onClick: PropTypes.func,
}),
),
Expand Down

0 comments on commit 507af29

Please sign in to comment.