diff --git a/components/cart/add-to-cart.tsx b/components/cart/add-to-cart.tsx index 5e7afbff9..2cb9ad384 100644 --- a/components/cart/add-to-cart.tsx +++ b/components/cart/add-to-cart.tsx @@ -1,6 +1,6 @@ 'use client'; -import { PlusIcon } from '@heroicons/react/24/outline'; +import { ShoppingCartIcon } from '@heroicons/react/24/outline'; import clsx from 'clsx'; import { addItem } from 'components/cart/actions'; import LoadingDots from 'components/loading-dots'; @@ -17,7 +17,7 @@ function SubmitButton({ }) { const { pending } = useFormStatus(); const buttonClasses = - 'relative flex w-full items-center justify-center rounded-full bg-blue-600 p-4 tracking-wide text-white'; + 'relative flex w-full items-center justify-center rounded bg-secondary p-4 tracking-wide text-white gap-3'; const disabledClasses = 'cursor-not-allowed opacity-60 hover:opacity-60'; if (!availableForSale) { @@ -35,9 +35,7 @@ function SubmitButton({ aria-disabled className={clsx(buttonClasses, disabledClasses)} > -
{`${new Intl.NumberFormat(undefined, { @@ -17,7 +19,9 @@ const Price = ({ currency: currencyCode, currencyDisplay: 'narrowSymbol' }).format(parseFloat(amount))}`} - {`${currencyCode}`} + {showCurrency && ( + {`${currencyCode}`} + )}
); diff --git a/components/product/product-description.tsx b/components/product/product-description.tsx index 10232ae3d..83567fe7c 100644 --- a/components/product/product-description.tsx +++ b/components/product/product-description.tsx @@ -9,11 +9,12 @@ export function ProductDescription({ product }: { product: Product }) { return ( <>