Commit 42f244e9 authored by mgabdev's avatar mgabdev

Added onClick prop to NavigationBarButton component

• Added:
- onClick prop to NavigationBarButton component
parent fb815c5f
......@@ -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
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment