Skip to content

Commit 832a84c

Browse files
refactor(BestOfCorex): Removed ApiErrorDisplay
1 parent 7ce5526 commit 832a84c

2 files changed

Lines changed: 0 additions & 49 deletions

File tree

src/components/ApiErrorDisplay.jsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/components/BestOfCorex.jsx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import { ChevronLeft, ChevronRight } from 'lucide-react';
3-
import { ApiErrorDisplay } from './ApiErrorDisplay';
43
import { useProductCarousel } from '../hooks/useProductCarousel';
54
import ProductSkeleton from './Products/ProductSkeleton';
65
import ProductCarousel from './Products/ProductCarousel';
@@ -84,27 +83,6 @@ const BestOfCoreX = () => {
8483
</div>
8584
)}
8685

87-
{/* Handle complete failure */}
88-
{error && !allCollectionsData && (
89-
<ApiErrorDisplay developerError={error.message} />
90-
)}
91-
92-
{/*//TODO:Delete if not required post closing of #88 */}
93-
{/* Handle partial success with a non-blocking warning
94-
{errors.length > 0 && allCollectionsData && (
95-
<div className="my-4 p-4 bg-yellow-50 border border-yellow-200 rounded-lg flex items-center gap-4">
96-
<AlertTriangle className="h-6 w-6 text-yellow-500" />
97-
<div>
98-
<h4 className="font-semibold text-yellow-800">
99-
Some collections failed to load.
100-
</h4>
101-
<p className="text-sm text-yellow-700">
102-
The displayed products might be incomplete. You can try
103-
refreshing.
104-
</p>
105-
</div>
106-
</div>
107-
)} */}
10886

10987
{/* Product Carousel */}
11088
{!loading && allCollectionsData && (

0 commit comments

Comments
 (0)