feat: ItemWishList components add onChange event

This commit is contained in:
unknown 2021-08-24 15:43:04 +07:00
parent ffca0a14ac
commit 146aa6309f

View File

@ -6,9 +6,10 @@ import s from './ItemWishList.module.scss'
interface Props { interface Props {
isActive?: boolean, isActive?: boolean,
onClick?: () => void onClick?: () => void
onChange?: () => void
} }
const ItemWishList = memo(({isActive, onClick}:Props) => { const ItemWishList = memo(({isActive, onClick, onChange}:Props) => {
const handleClick = () => { const handleClick = () => {
isActive = !isActive isActive = !isActive
} }