diff --git a/components/shopify/collection-detail.tsx b/components/shopify/collection-detail.tsx index 17913f4..2d4ee70 100644 --- a/components/shopify/collection-detail.tsx +++ b/components/shopify/collection-detail.tsx @@ -9,7 +9,7 @@ const CollectionDetail: React.FC = () => { const params = useParams(); const handle = params?.handle as string; - const { collection, loading, error, refetch } = useCollectionProducts(handle); + const { collection, loading, error } = useCollectionProducts(handle); // Format title from handle const formattedTitle = handle @@ -42,26 +42,14 @@ const CollectionDetail: React.FC = () => { if (error) { return (
- {error} -
- -+ The collection you are looking for does not exist or is no longer + available. +
- This collection doesn't have any products yet. -
-+ This collection doesn't have any products yet. +
- {error} -
- -+ We couldn't load any collections right now. Please try again + later. +
diff --git a/components/shopify/product-detail/index.tsx b/components/shopify/product-detail/index.tsx
index ae2d7e0..1664120 100644
--- a/components/shopify/product-detail/index.tsx
+++ b/components/shopify/product-detail/index.tsx
@@ -8,9 +8,6 @@ import { useShopifyCart } from '@/hooks/use-shopify-cart';
import ProductDetailGallery from './product-detail-gallery';
import ProductDetailInfo from './product-detail-info';
import ProductRecommendations from '../product-recommendations';
-import { Button } from '@/components/ui/button';
-import { Alert, AlertTitle, AlertDescription } from '@/components/ui/alert';
-import { RiErrorWarningLine } from '@remixicon/react';
import {
Breadcrumb,
BreadcrumbList,
@@ -128,22 +125,14 @@ const ProductDetail: React.FC
+ The product you are looking for does not exist or is no longer
+ available.
+
- {error}
-
+ We couldn't load any products right now. Please try again
+ later.
+
+ Product Not Found
+
+
- {title}
+
+ Products Unavailable
-
-
- Failed to Load Products
-
-
+
No Products Found