diff --git a/src/components/common/ItemWishList/ItemWishList.tsx b/src/components/common/ItemWishList/ItemWishList.tsx index 5adef90b8..f93f1e135 100644 --- a/src/components/common/ItemWishList/ItemWishList.tsx +++ b/src/components/common/ItemWishList/ItemWishList.tsx @@ -5,20 +5,17 @@ import s from './ItemWishList.module.scss' interface Props { isActive?: boolean, - onClick?: () => void onChange?: () => void } -const ItemWishList = memo(({isActive, onClick, onChange}:Props) => { - const handleClick = () => { - isActive = !isActive - } +const ItemWishList = memo(({isActive, onChange}:Props) => { return(
+ onChange={onChange} + >
)