fix warning
This commit is contained in:
parent
c912c12384
commit
c0cabdc45e
|
@ -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' }}>
|
||||
|
|
|
@ -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'}
|
||||
|
|
|
@ -5,7 +5,6 @@ interface SidebarButton {
|
|||
isDotOn: boolean
|
||||
isSelected: boolean
|
||||
isDisabled?: boolean
|
||||
|
||||
}
|
||||
|
||||
interface LeftSidebarState {
|
||||
|
|
Loading…
Reference in New Issue