From 7a94fefa15c8a6d7e9b4c67e0476d1609829819b Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Wed, 10 Apr 2024 18:02:27 +0300 Subject: [PATCH] fix(left-sidebar): remove useless components --- .../General/LeftSidebar/LeftSidebar.tsx | 6 +-- .../LeftSidebar/LeftSidebarIconButton.tsx | 40 +++++++++---------- 2 files changed, 22 insertions(+), 24 deletions(-) diff --git a/src/components/General/LeftSidebar/LeftSidebar.tsx b/src/components/General/LeftSidebar/LeftSidebar.tsx index 880b6758..a8c8c9d6 100644 --- a/src/components/General/LeftSidebar/LeftSidebar.tsx +++ b/src/components/General/LeftSidebar/LeftSidebar.tsx @@ -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) => ( -
+ -
+
))} diff --git a/src/components/General/LeftSidebar/LeftSidebarIconButton.tsx b/src/components/General/LeftSidebar/LeftSidebarIconButton.tsx index 20785173..12d32830 100644 --- a/src/components/General/LeftSidebar/LeftSidebarIconButton.tsx +++ b/src/components/General/LeftSidebar/LeftSidebarIconButton.tsx @@ -17,28 +17,26 @@ const LeftSidebarIconButton = ({ }: IconButtonWithDotProps) => { return ( - - + {isDotOn && ( + - {isDotOn && ( - - )} - + )} ) }