Added onClick prop to NavigationBarButton component
• Added: - onClick prop to NavigationBarButton component
This commit is contained in:
parent
fb815c5f47
commit
42f244e967
@ -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
|
Loading…
Reference in New Issue
Block a user