From 4687b989053ea831ac90d9c0430bec21d966f591 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Mon, 2 Oct 2023 15:41:42 -0500 Subject: [PATCH] Updates --- components/cart/add-to-cart.tsx | 16 ++++------------ components/cart/delete-item-button.tsx | 15 ++++----------- components/cart/edit-item-quantity-button.tsx | 15 ++++----------- 3 files changed, 12 insertions(+), 34 deletions(-) diff --git a/components/cart/add-to-cart.tsx b/components/cart/add-to-cart.tsx index c3a3107a1..4779d85bf 100644 --- a/components/cart/add-to-cart.tsx +++ b/components/cart/add-to-cart.tsx @@ -6,7 +6,6 @@ import { addItem } from 'components/cart/actions'; import LoadingDots from 'components/loading-dots'; import { ProductVariant } from 'lib/shopify/types'; import { useSearchParams } from 'next/navigation'; -import { useTransition } from 'react'; import { // @ts-ignore experimental_useFormState as useFormState, @@ -50,7 +49,9 @@ function SubmitButton({ return (