fix(left-sidebar): check paths for valid selected icon
This commit is contained in:
parent
bf4d8043ce
commit
46dbef0cfe
|
@ -34,7 +34,7 @@ const LeftSidebarIconButton = ({
|
||||||
<IconButton
|
<IconButton
|
||||||
icon={iconEl}
|
icon={iconEl}
|
||||||
variant={isDisabled ? 'outline' : 'ghost'}
|
variant={isDisabled ? 'outline' : 'ghost'}
|
||||||
selected={isSelected}
|
selected={path === window.location.pathname}
|
||||||
disabled={isDisabled}
|
disabled={isDisabled}
|
||||||
/>
|
/>
|
||||||
{isDotOn && (
|
{isDotOn && (
|
||||||
|
|
Loading…
Reference in New Issue