From fee30d4482d1fc70dade9ac539ea5f964ad62d41 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 11 Apr 2019 18:32:38 +0200 Subject: [PATCH] adjust prop in HeaderButton --- src/components/views/right_panel/HeaderButton.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/views/right_panel/HeaderButton.js b/src/components/views/right_panel/HeaderButton.js index ffd3d87616..2c1e15898e 100644 --- a/src/components/views/right_panel/HeaderButton.js +++ b/src/components/views/right_panel/HeaderButton.js @@ -54,9 +54,8 @@ export default class HeaderButton extends React.Component { HeaderButton.propTypes = { // Whether this button is highlighted isHighlighted: PropTypes.bool.isRequired, - // The phase to swap to when the button is clicked - clickPhase: PropTypes.string.isRequired, - + // click handler + onClick: PropTypes.func.isRequired, // The badge to display above the icon badge: PropTypes.node, // The parameters to track the click event