SvgIcon: pass className to loader

This commit is contained in:
Alex Gleason 2022-04-10 12:25:53 -05:00
parent 423c005437
commit bd39b76799
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View file

@ -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,
})} })}

View file

@ -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} />}
/> />
); );