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,
|
to,
|
||||||
href,
|
href,
|
||||||
attrTitle,
|
attrTitle,
|
||||||
|
onClick,
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
const active = false
|
const active = false
|
||||||
@ -49,6 +50,7 @@ class NavigationBarButton extends React.PureComponent {
|
|||||||
to={to}
|
to={to}
|
||||||
href={href}
|
href={href}
|
||||||
title={attrTitle}
|
title={attrTitle}
|
||||||
|
onClick={onClick}
|
||||||
className={classes}
|
className={classes}
|
||||||
noClasses
|
noClasses
|
||||||
>
|
>
|
||||||
@ -71,6 +73,7 @@ NavigationBarButton.propTypes = {
|
|||||||
to: PropTypes.string,
|
to: PropTypes.string,
|
||||||
href: PropTypes.string,
|
href: PropTypes.string,
|
||||||
attrTitle: PropTypes.string,
|
attrTitle: PropTypes.string,
|
||||||
|
onClick: PropTypes.func,
|
||||||
}
|
}
|
||||||
|
|
||||||
export default NavigationBarButton
|
export default NavigationBarButton
|
Loading…
x
Reference in New Issue
Block a user