diff --git a/static/src/js/components/navbar/item.js b/static/src/js/components/navbar/item.js index bdaa72a..1039a16 100644 --- a/static/src/js/components/navbar/item.js +++ b/static/src/js/components/navbar/item.js @@ -2,8 +2,14 @@ import React from 'react'; export default class Item extends React.Component { render() { + let icon; + if (this.props.icon) { + icon = ( + + ); + } return ( -
  • {this.props.children}
  • +
  • {icon} {this.props.children}
  • ); } }