8000 feature: adds badge on sidebar parent menus · Frabat/coreui-react@63dd5ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 63dd5ff

Browse files
author
Jeff
committed
feature: adds badge on sidebar parent menus
closes feature/sidebar-badge-on-parent-menus
1 parent 1f167ea commit 63dd5ff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

demo/src/scss/style.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/SidebarNav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class AppSidebarNav extends Component {
111111
const classIcon = classNames('nav-icon', item.icon);
112112
return (
113113
<li key={key} className={this.activeRoute(item.url, this.props)}>
114-
<a className="nav-link nav-dropdown-toggle" href="#" onClick={this.handleClick}><i className={classIcon} />{item.name}</a>
114+
<a className="nav-link nav-dropdown-toggle" href="#" onClick={this.handleClick}><i className={classIcon} />{item.name}{this.navBadge(item.badge)}</a>
115115
<ul className="nav-dropdown-items">
116116
{this.navList(item.children)}
117117
</ul>

0 commit comments

Comments
 (0)
0