From aed6c867fbf542bfa26175f4399ebef5baf6dac0 Mon Sep 17 00:00:00 2001 From: Gabriel Bull Date: Mon, 8 Aug 2016 10:14:42 -0400 Subject: [PATCH] Added selected props to toolbar nav --- src/toolbar/macOs/nav/item/item.js | 11 +++-------- src/toolbar/macOs/nav/nav.js | 25 ++++++++++++++++++++----- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/toolbar/macOs/nav/item/item.js b/src/toolbar/macOs/nav/item/item.js index 6a68cb4b..7b74ed51 100644 --- a/src/toolbar/macOs/nav/item/item.js +++ b/src/toolbar/macOs/nav/item/item.js @@ -28,19 +28,14 @@ class Item extends Component { static propTypes = { name: PropTypes.string, icon: PropTypes.element, + selected: PropTypes.bool }; - isSvg(icon) { - return icon.type === 'svg'; - } - render() { - const { name, icon, style, ...props } = this.props; - - this.isSvg(icon); + const { name, icon, style, selected, ...props } = this.props; return ( -
+
+