From c0cabdc45e7d3357cbcfb64784d22ac3ab7033cc Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Tue, 26 Sep 2023 13:52:01 +0300 Subject: [PATCH] fix warning --- src/pages/Dashboard/IconButtonWithDot.tsx | 2 +- src/pages/Dashboard/LeftSidebar.tsx | 5 ++--- src/redux/Sidebars/slice.ts | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/pages/Dashboard/IconButtonWithDot.tsx b/src/pages/Dashboard/IconButtonWithDot.tsx index db0acfb1..4ae18c47 100644 --- a/src/pages/Dashboard/IconButtonWithDot.tsx +++ b/src/pages/Dashboard/IconButtonWithDot.tsx @@ -21,7 +21,7 @@ const IconButtonWithDot = ({ id }: IconButtonWithDotProps) => { const dispatch = useDispatch() - const onClickHandler = (id) => { if (!disabled) dispatch(toggleButtonSelection(id)) } + const onClickHandler = (id: string) => { if (!disabled) dispatch(toggleButtonSelection(id)) } return ( diff --git a/src/pages/Dashboard/LeftSidebar.tsx b/src/pages/Dashboard/LeftSidebar.tsx index 0da8715b..b3aaa9cd 100644 --- a/src/pages/Dashboard/LeftSidebar.tsx +++ b/src/pages/Dashboard/LeftSidebar.tsx @@ -10,11 +10,9 @@ import { } from '@status-im/icons' import { YStack } from 'tamagui' import IconButtonWithDot from './IconButtonWithDot' -import { useDispatch, useSelector } from 'react-redux' -import { toggleButtonSelection } from '../../redux/Sidebars/slice' +import { useSelector } from 'react-redux' const LeftSidebar = () => { - const buttons = useSelector((state: any) => state.leftSidebar.buttons) const renderIcon = (id: string) => { @@ -29,6 +27,7 @@ const LeftSidebar = () => { case 'settings': return ; default: return null; } + }; return (