We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1418c82 commit 41781dfCopy full SHA for 41781df
1 file changed
packages/tiger-san/src/navbar/navbar-menu-item.js
@@ -1,12 +1,13 @@
1
import React from 'react'
2
import PropTypes from 'prop-types'
3
4
-export const NavbarMenuItem = ({ children, href }) => (
+export const NavbarMenuItem = ({ children, href, onClick }) => (
5
<li role="none" className="navbar__item">
6
<a
7
role="menuitem"
8
href={href}
9
className="navbar__item navbar__item--link"
10
+ onClick={onClick}
11
>
12
{children}
13
</a>
@@ -20,5 +21,6 @@ NavbarMenuItem.propTypes = {
20
21
PropTypes.elementType,
22
PropTypes.func
23
]).isRequired,
- href: PropTypes.string.isRequired
24
+ href: PropTypes.string.isRequired,
25
+ onClick: PropTypes.func
26
}
0 commit comments