SidebarNavigationLink: set parent height for before svg is loaded

This commit is contained in:
Alex Gleason 2022-04-01 20:41:00 -05:00
parent 1e3c6d9430
commit dfb5e7f41b
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 10 additions and 8 deletions

View File

@ -37,14 +37,16 @@ const SidebarNavigationLink = ({ icon, text, to, count }: ISidebarNavigationLink
</span>
) : null}
<Icon
src={icon}
className={classNames({
'h-5 w-5': true,
'text-primary-700 dark:text-white': !isActive,
'text-white': isActive,
})}
/>
<div className='h-5 w-5'>
<Icon
src={icon}
className={classNames({
'h-full w-full': true,
'text-primary-700 dark:text-white': !isActive,
'text-white': isActive,
})}
/>
</div>
</span>
<Text weight='semibold' theme='inherit'>{text}</Text>