mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 12:11:22 +00:00
feat: ItemWishList components add onChange event
This commit is contained in:
parent
ffca0a14ac
commit
146aa6309f
@ -6,9 +6,10 @@ import s from './ItemWishList.module.scss'
|
||||
interface Props {
|
||||
isActive?: boolean,
|
||||
onClick?: () => void
|
||||
onChange?: () => void
|
||||
}
|
||||
|
||||
const ItemWishList = memo(({isActive, onClick}:Props) => {
|
||||
const ItemWishList = memo(({isActive, onClick, onChange}:Props) => {
|
||||
const handleClick = () => {
|
||||
isActive = !isActive
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user