SidebarNavigationLink: set parent height for before svg is loaded
This commit is contained in:
parent
1e3c6d9430
commit
dfb5e7f41b
|
@ -37,14 +37,16 @@ const SidebarNavigationLink = ({ icon, text, to, count }: ISidebarNavigationLink
|
||||||
</span>
|
</span>
|
||||||
) : null}
|
) : null}
|
||||||
|
|
||||||
|
<div className='h-5 w-5'>
|
||||||
<Icon
|
<Icon
|
||||||
src={icon}
|
src={icon}
|
||||||
className={classNames({
|
className={classNames({
|
||||||
'h-5 w-5': true,
|
'h-full w-full': true,
|
||||||
'text-primary-700 dark:text-white': !isActive,
|
'text-primary-700 dark:text-white': !isActive,
|
||||||
'text-white': isActive,
|
'text-white': isActive,
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<Text weight='semibold' theme='inherit'>{text}</Text>
|
<Text weight='semibold' theme='inherit'>{text}</Text>
|
||||||
|
|
Loading…
Reference in New Issue