diff --git a/src/components/General/LeftSidebar/LeftSidebarIconButton.tsx b/src/components/General/LeftSidebar/LeftSidebarIconButton.tsx index 6e12c397..8d8d3413 100644 --- a/src/components/General/LeftSidebar/LeftSidebarIconButton.tsx +++ b/src/components/General/LeftSidebar/LeftSidebarIconButton.tsx @@ -1,7 +1,7 @@ import { IconButton } from '@status-im/components' import { useDispatch } from 'react-redux' import { Stack } from 'tamagui' -import { useNavigate } from 'react-router' +import { Link } from 'react-router-dom' import { toggleButtonSelection } from '../../../redux/LeftSidebar/slice' @@ -23,37 +23,36 @@ const LeftSidebarIconButton = ({ path, }: IconButtonWithDotProps) => { const dispatch = useDispatch() - const navigate = useNavigate() const onClickHandler = () => { isDisabled ? null : dispatch(toggleButtonSelection(id)) - navigate(path) } return ( - - - {isDotOn && ( - + + - )} - + {isDotOn && ( + + )} + + ) }