Commit 7b09ec89 authored by tom's avatar tom

fix clicks

parent 160fb865
...@@ -22,15 +22,7 @@ const NavLink = ({ text, pathname, icon, isCollapsed }: Props) => { ...@@ -22,15 +22,7 @@ const NavLink = ({ text, pathname, icon, isCollapsed }: Props) => {
return ( return (
<NextLink href={ pathname } passHref> <NextLink href={ pathname } passHref>
<Tooltip
label={ text }
hasArrow={ false }
isDisabled={ !isCollapsed }
placement="right"
variant="nav"
gutter={ 0 }
color={ isActive ? colors.text.active : colors.text.hover }
>
<Link <Link
as="li" as="li"
listStyleType="none" listStyleType="none"
...@@ -43,13 +35,22 @@ const NavLink = ({ text, pathname, icon, isCollapsed }: Props) => { ...@@ -43,13 +35,22 @@ const NavLink = ({ text, pathname, icon, isCollapsed }: Props) => {
borderRadius="base" borderRadius="base"
whiteSpace="nowrap" whiteSpace="nowrap"
{ ...getDefaultTransitionProps({ transitionProperty: 'width, padding' }) } { ...getDefaultTransitionProps({ transitionProperty: 'width, padding' }) }
>
<Tooltip
label={ text }
hasArrow={ false }
isDisabled={ !isCollapsed }
placement="right"
variant="nav"
gutter={ 15 }
color={ isActive ? colors.text.active : colors.text.hover }
> >
<HStack spacing={ 3 }> <HStack spacing={ 3 }>
<Icon as={ icon } boxSize="30px"/> <Icon as={ icon } boxSize="30px"/>
{ !isCollapsed && <Text variant="inherit">{ text }</Text> } { !isCollapsed && <Text variant="inherit">{ text }</Text> }
</HStack> </HStack>
</Link>
</Tooltip> </Tooltip>
</Link>
</NextLink> </NextLink>
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment