We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
icon
1 parent d0dba67 commit 5fd72b0Copy full SHA for 5fd72b0
src/template/CSidebarNavItem.js
@@ -44,7 +44,7 @@ const CSidebarNavItem = props => {
44
{...routerLinkProps}
45
{...rest}
46
>
47
- { icon && isValidElement(icon) ? icon : <CIcon {...iconProps(icon)}/> }
+ { icon && (isValidElement(icon) ? icon : <CIcon {...iconProps(icon)}/>) }
48
{ fontIcon && <i className={`c-sidebar-nav-icon ${fontIcon}`}/>}
49
{name}
50
{ badge && <CBadge {...{...badge, text: null}}>{badge.text}</CBadge>}
0 commit comments