Unify icon class name, change the way icons are floated in menus

This commit is contained in:
Toby Zerner
2015-05-02 08:32:45 +09:30
parent ee40acd5c2
commit 4d04d801d1
8 changed files with 35 additions and 20 deletions

View File

@ -5,7 +5,7 @@ export default class NavItem extends Component {
view() {
var active = NavItem.active(this.props);
return m('li'+(active ? '.active' : ''), m('a', {href: this.props.href, config: m.route}, [
icon(this.props.icon),
icon(this.props.icon+' icon'),
this.props.label, ' ',
m('span.count', this.props.badge)
]))