SidebarNavigationLink: set parent height for before svg is loaded

next-interactions
Alex Gleason 2022-04-01 20:41:00 -05:00
rodzic 1e3c6d9430
commit dfb5e7f41b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 10 dodań i 8 usunięć

Wyświetl plik

@ -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>