From 554d17a65a83b4f863263c0ce69672bc0896ed7b Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Wed, 10 Apr 2024 17:00:21 +0300 Subject: [PATCH] fix(left-sidebar): replace 'any' types --- src/components/General/LeftSidebar/LeftSidebar.tsx | 7 +++++-- src/redux/LeftSidebar/slice.ts | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/General/LeftSidebar/LeftSidebar.tsx b/src/components/General/LeftSidebar/LeftSidebar.tsx index d1ff5bb2..87f17cf3 100644 --- a/src/components/General/LeftSidebar/LeftSidebar.tsx +++ b/src/components/General/LeftSidebar/LeftSidebar.tsx @@ -11,10 +11,13 @@ import { import { XStack, YStack } from 'tamagui' import { useSelector } from 'react-redux' import { Text, Tooltip } from '@status-im/components' + import LeftSidebarIconButton from './LeftSidebarIconButton' +import { SidebarButton } from '../../../redux/LeftSidebar/slice' +import { RootState } from '../../../redux/store' const LeftSidebar = () => { - const buttons = useSelector((state: any) => state.leftSidebar.buttons) + const buttons = useSelector((state: RootState) => state.leftSidebar.buttons) const renderIcon = (path: string) => { switch (path) { @@ -50,7 +53,7 @@ const LeftSidebar = () => { border: '1px solid #F0F2F5', }} > - {buttons.map((button: any) => ( + {buttons.map((button: SidebarButton) => (