File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -128,14 +128,28 @@ type SidebarItemContentProps = {
128
128
icon : ReactNode ;
129
129
label : string ;
130
130
isActive ?: boolean ;
131
+ svgStroke ?: boolean ;
131
132
} ;
132
133
133
- export function SidebarItemContent ( { icon, label, isActive } : SidebarItemContentProps ) {
134
+ export function SidebarItemContent ( {
135
+ icon,
136
+ label,
137
+ isActive,
138
+ svgStroke = false
139
+ } : SidebarItemContentProps ) {
134
140
const existingIconClasses = isValidElement ( icon ) ? icon . props . className || "" : "" ;
135
141
136
142
const iconClasses = cn (
137
143
existingIconClasses ,
138
- `w-5 h-5 shrink-0 ${ isActive ? "stroke-primary-400" : "stroke-theme-text-tertiary" } `
144
+ `w-5 h-5 shrink-0 ${
145
+ svgStroke
146
+ ? isActive
147
+ ? "stroke-primary-400"
148
+ : "stroke-theme-text-tertiary"
149
+ : isActive
150
+ ? "fill-primary-400"
151
+ : "fill-theme-text-tertiary"
152
+ } `
139
153
) ;
140
154
return (
141
155
< >
You can’t perform that action at this time.
0 commit comments