SvgIcon: pass className to loader
This commit is contained in:
parent
423c005437
commit
bd39b76799
2 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ const SidebarNavigationLink = ({ icon, text, to, count }: ISidebarNavigationLink
|
||||||
|
|
||||||
<Icon
|
<Icon
|
||||||
src={icon}
|
src={icon}
|
||||||
size={20}
|
|
||||||
className={classNames({
|
className={classNames({
|
||||||
|
'h-5 w-5': true,
|
||||||
'text-primary-700 dark:text-white': !isActive,
|
'text-primary-700 dark:text-white': !isActive,
|
||||||
'text-white': isActive,
|
'text-white': isActive,
|
||||||
})}
|
})}
|
||||||
|
|
|
@ -16,7 +16,7 @@ const SvgIcon = ({ src, alt, size = 24, className }: ISvgIcon): JSX.Element => (
|
||||||
title={alt}
|
title={alt}
|
||||||
width={size}
|
width={size}
|
||||||
height={size}
|
height={size}
|
||||||
loader={<div style={{ width: size, height: size }} />}
|
loader={<svg className={className} width={size} height={size} />}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue