From 63d96d0a2e1528cb9b5dee4bd8db85d01da8c215 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 29 Jan 2016 22:56:59 +0000 Subject: [PATCH] Added glyphicon support for icons --- static/src/js/components/navbar/item.js | 12 +++++++++--- static/src/js/components/navbar/navbar.js | 2 +- static/src/less/navbar.less | 2 +- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/static/src/js/components/navbar/item.js b/static/src/js/components/navbar/item.js index f2560c9..b01f299 100644 --- a/static/src/js/components/navbar/item.js +++ b/static/src/js/components/navbar/item.js @@ -28,9 +28,15 @@ export default class Item extends React.Component { render() { let icon; if (this.props.icon) { - icon = ( - - ); + if (this.props.icon.startsWith('ion')) { + icon = ( + + ); + } else if (this.props.icon.startsWith('glyphicon')) { + icon = ( +