Skip to content

Commit

Permalink
feat: CSidebarNavItem: add color prop
Browse files Browse the repository at this point in the history
  • Loading branch information
woothu committed Jun 1, 2020
1 parent 907e59a commit 12c2ba3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/template/CSidebarNavItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const CSidebarNavItem = props => {
badge,
addLinkClass,
label,
color,
...rest
} = props

Expand All @@ -30,6 +31,7 @@ const CSidebarNavItem = props => {

const linkClasses = classNames(
label ? 'c-sidebar-nav-label' : 'c-sidebar-nav-link',
color && `c-sidebar-nav-link-${color}`,
addLinkClass
)

Expand All @@ -55,14 +57,14 @@ const CSidebarNavItem = props => {
CSidebarNavItem.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
//
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.object]),
icon: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
fontIcon: PropTypes.string,
badge: PropTypes.object,
addLinkClass: PropTypes.string,
label: PropTypes.bool,
name: PropTypes.string
};
name: PropTypes.string,
color: PropTypes.string
}

export default CSidebarNavItem

0 comments on commit 12c2ba3

Please sign in to comment.