Added onClick prop to NavigationBarButton component

• Added:
- onClick prop to NavigationBarButton component
This commit is contained in:
mgabdev 2020-10-16 17:00:33 -05:00
parent fb815c5f47
commit 42f244e967

View File

@ -14,6 +14,7 @@ class NavigationBarButton extends React.PureComponent {
to,
href,
attrTitle,
onClick,
} = this.props
const active = false
@ -49,6 +50,7 @@ class NavigationBarButton extends React.PureComponent {
to={to}
href={href}
title={attrTitle}
onClick={onClick}
className={classes}
noClasses
>
@ -71,6 +73,7 @@ NavigationBarButton.propTypes = {
to: PropTypes.string,
href: PropTypes.string,
attrTitle: PropTypes.string,
onClick: PropTypes.func,
}
export default NavigationBarButton