Added actions and more stuff to the wishlist page

This commit is contained in:
Luis Alvarez
2020-10-27 03:13:25 -05:00
parent 95fd730f0a
commit 9ad0f0ef6b
8 changed files with 137 additions and 74 deletions

View File

@@ -14,7 +14,7 @@ import type { ProductNode } from '@lib/bigcommerce/api/operations/get-product'
import {
getCurrentVariant,
getProductOptions,
ProductOptions,
SelectedOptions,
} from '../helpers'
import WishlistButton from '@components/wishlist/WishlistButton'
@@ -29,7 +29,7 @@ const ProductView: FC<Props> = ({ product }) => {
const { openSidebar } = useUI()
const options = getProductOptions(product)
const [loading, setLoading] = useState(false)
const [choices, setChoices] = useState<ProductOptions>({
const [choices, setChoices] = useState<SelectedOptions>({
size: null,
color: null,
})