Fix lib icons, this time for sure

This commit is contained in:
Terry Sutton
2022-11-28 13:05:39 -03:30
parent b5a12bc761
commit 1f302d69ce

View File

@@ -238,10 +238,8 @@ const SideNav = () => {
<Image
alt={link.label}
src={`${router.basePath}${
!link.hasLightIcon
? isDarkMode
? link.icon
: `${link.icon}-light`
Object.hasOwn(link, 'hasLightIcon') && !link.hasLightIcon
? link.icon
: isDarkMode
? link.icon
: `${link.icon}-light`