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 (