Moved wishlist use-remove-item to provider

This commit is contained in:
Luis Alvarez
2021-02-19 17:04:58 -05:00
parent f4c067982a
commit aa227e3de2
5 changed files with 63 additions and 47 deletions

View File

@@ -22,7 +22,7 @@ const WishlistCard: FC<Props> = ({ product }) => {
baseAmount: product.prices?.retailPrice?.value,
currencyCode: product.prices?.price?.currencyCode!,
})
const removeItem = useRemoveItem({ includeProducts: true })
const removeItem = useRemoveItem({ wishlist: { includeProducts: true } })
const [loading, setLoading] = useState(false)
const [removing, setRemoving] = useState(false)
const addItem = useAddItem()