fix(left-sidebar): remove useless components
This commit is contained in:
parent
50d1227496
commit
7a94fefa15
|
@ -8,7 +8,7 @@ import {
|
|||
ActivityCenterIcon,
|
||||
SettingsIcon,
|
||||
} from '@status-im/icons'
|
||||
import { YStack } from 'tamagui'
|
||||
import { Stack, YStack } from 'tamagui'
|
||||
import { useSelector } from 'react-redux'
|
||||
import { Tooltip } from '@status-im/components'
|
||||
|
||||
|
@ -41,14 +41,14 @@ const LeftSidebar = () => {
|
|||
>
|
||||
{buttons.map((button: SidebarButton) => (
|
||||
<Tooltip side="right" content={button.tooltip} key={button.path}>
|
||||
<div style={{ padding: '3px', cursor: 'pointer' }}>
|
||||
<Stack>
|
||||
<LeftSidebarIconButton
|
||||
iconEl={iconMap[button.path as keyof typeof iconMap]}
|
||||
isDotOn={button.isDotOn}
|
||||
isDisabled={button.isDisabled}
|
||||
path={button.path}
|
||||
/>
|
||||
</div>
|
||||
</Stack>
|
||||
</Tooltip>
|
||||
))}
|
||||
</YStack>
|
||||
|
|
|
@ -17,7 +17,6 @@ const LeftSidebarIconButton = ({
|
|||
}: IconButtonWithDotProps) => {
|
||||
return (
|
||||
<Link to={path}>
|
||||
<Stack style={{ position: 'relative', display: 'inline-block' }}>
|
||||
<IconButton
|
||||
icon={iconEl}
|
||||
variant={isDisabled ? 'outline' : 'ghost'}
|
||||
|
@ -38,7 +37,6 @@ const LeftSidebarIconButton = ({
|
|||
}}
|
||||
/>
|
||||
)}
|
||||
</Stack>
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue