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> </span>
) : null} ) : null}
<Icon <div className='h-5 w-5'>
src={icon} <Icon
className={classNames({ src={icon}
'h-5 w-5': true, className={classNames({
'text-primary-700 dark:text-white': !isActive, 'h-full w-full': true,
'text-white': isActive, 'text-primary-700 dark:text-white': !isActive,
})} 'text-white': isActive,
/> })}
/>
</div>
</span> </span>
<Text weight='semibold' theme='inherit'>{text}</Text> <Text weight='semibold' theme='inherit'>{text}</Text>