File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ const CSidebarNavItem = props => {
19
19
badge,
20
20
addLinkClass,
21
21
label,
22
+ color,
22
23
...rest
23
24
} = props
24
25
@@ -30,6 +31,7 @@ const CSidebarNavItem = props => {
30
31
31
32
const linkClasses = classNames (
32
33
label ? 'c-sidebar-nav-label' : 'c-sidebar-nav-link' ,
34
+ color && `c-sidebar-nav-link-${ color } ` ,
33
35
addLinkClass
34
36
)
35
37
@@ -55,14 +57,14 @@ const CSidebarNavItem = props => {
55
57
CSidebarNavItem . propTypes = {
56
58
children : PropTypes . node ,
57
59
className : PropTypes . string ,
58
- //
59
60
innerRef : PropTypes . oneOfType ( [ PropTypes . func , PropTypes . string , PropTypes . object ] ) ,
60
61
icon : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . object ] ) ,
61
62
fontIcon : PropTypes . string ,
62
63
badge : PropTypes . object ,
63
64
addLinkClass : PropTypes . string ,
64
65
label : PropTypes . bool ,
65
- name : PropTypes . string
66
- } ;
66
+ name : PropTypes . string ,
67
+ color : PropTypes . string
68
+ }
67
69
68
70
export default CSidebarNavItem
You can’t perform that action at this time.
0 commit comments