From 10a989a003ec4d2b8c9e2bb72b7d342a4412b3d0 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 10 Dec 2018 15:33:35 +0100 Subject: [PATCH] make icon optional in action button as we'll draw the icon with css --- src/components/views/elements/ActionButton.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/views/elements/ActionButton.js b/src/components/views/elements/ActionButton.js index e494c216de..a9d95e4a52 100644 --- a/src/components/views/elements/ActionButton.js +++ b/src/components/views/elements/ActionButton.js @@ -30,7 +30,7 @@ export default React.createClass({ action: PropTypes.string.isRequired, mouseOverAction: PropTypes.string, label: PropTypes.string.isRequired, - iconPath: PropTypes.string.isRequired, + iconPath: PropTypes.string, }, getDefaultProps: function() { @@ -72,6 +72,10 @@ export default React.createClass({ tooltip = ; } + const icon = this.props.iconPath ? + () : + undefined; + return ( - + { icon } { tooltip } );