fix warning

This commit is contained in:
Hristo Nedelkov 2023-09-26 13:52:01 +03:00
parent c912c12384
commit c0cabdc45e
3 changed files with 3 additions and 5 deletions

View File

@ -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 (
<Stack style={{ position: 'relative', display: 'inline-block' }}>

View File

@ -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 <SettingsIcon size={20} />;
default: return null;
}
}; return (
<YStack
space={'$4'}

View File

@ -5,7 +5,6 @@ interface SidebarButton {
isDotOn: boolean
isSelected: boolean
isDisabled?: boolean
}
interface LeftSidebarState {