From c863603b744fe4c5fdb7b52ed1e2c05bdf2b5d00 Mon Sep 17 00:00:00 2001 From: StephDietz Date: Mon, 10 Jul 2023 12:22:01 -0500 Subject: [PATCH] resolve GitHub PR comments --- components/cart/delete-item-button.tsx | 4 +- components/cart/edit-item-quantity-button.tsx | 4 +- components/cart/modal.tsx | 35 ++++++++-------- components/icons/cart.tsx | 22 ++++++---- components/icons/shopping-cart.tsx | 41 ------------------- package.json | 1 + pnpm-lock.yaml | 10 +++++ tailwind.config.js | 7 +--- 8 files changed, 48 insertions(+), 76 deletions(-) delete mode 100644 components/icons/shopping-cart.tsx diff --git a/components/cart/delete-item-button.tsx b/components/cart/delete-item-button.tsx index 73fb9774c..3012c28a6 100644 --- a/components/cart/delete-item-button.tsx +++ b/components/cart/delete-item-button.tsx @@ -28,14 +28,14 @@ export default function DeleteItemButton({ item }: { item: CartItem }) { }} disabled={isPending} className={clsx( - 'ease flex h-[17px] w-[17px] items-center justify-center rounded-full bg-base-gray-900 transition-all duration-200 ', + 'ease flex h-[17px] w-[17px] items-center justify-center rounded-full bg-stone-500 transition-all duration-200', { 'cursor-not-allowed px-0': isPending } )} > {isPending ? ( - + ) : ( )} diff --git a/components/cart/edit-item-quantity-button.tsx b/components/cart/edit-item-quantity-button.tsx index 974246aa2..2fa3e6aeb 100644 --- a/components/cart/edit-item-quantity-button.tsx +++ b/components/cart/edit-item-quantity-button.tsx @@ -52,9 +52,9 @@ export default function EditItemQuantityButton({ {isPending ? ( ) : type === 'plus' ? ( - + ) : ( - + )} ); diff --git a/components/cart/modal.tsx b/components/cart/modal.tsx index de11776c3..9e8103bf3 100644 --- a/components/cart/modal.tsx +++ b/components/cart/modal.tsx @@ -1,15 +1,14 @@ 'use client'; import { Dialog, Transition } from '@headlessui/react'; -import Image from 'next/image'; -import Link from 'next/link'; - +import { ShoppingCartIcon } from '@heroicons/react/24/solid'; import CartIcon from 'components/icons/cart'; -import ShoppingCartIcon from 'components/icons/shopping-cart'; import Price from 'components/price'; import { DEFAULT_OPTION } from 'lib/constants'; import type { Cart } from 'lib/shopify/types'; import { createUrl } from 'lib/utils'; +import Image from 'next/image'; +import Link from 'next/link'; import { Fragment, useEffect, useRef, useState } from 'react'; import { useCookies } from 'react-cookie'; import DeleteItemButton from './delete-item-button'; @@ -66,7 +65,7 @@ export default function CartModal({ cart, cartIdUpdated }: { cart: Cart; cartIdU leaveFrom="opacity-100 backdrop-blur-[.5px]" leaveTo="opacity-0 backdrop-blur-none" > -