fix(29-02): lint fixes for GearImage integration

Fix unused parameter warning and formatting issues across all
updated components.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-12 20:02:38 +02:00
parent 66d9c4157b
commit 9636033361
10 changed files with 169 additions and 34 deletions

View File

@@ -631,15 +631,13 @@ function GridCard({ item, onAdd, onCardClick, weight, price }: CardProps) {
className="aspect-[4/3] overflow-hidden"
style={{
backgroundColor: item.imageUrl
? ((item as Record<string, unknown>).dominantColor as string) || "#f3f4f6"
? ((item as Record<string, unknown>).dominantColor as string) ||
"#f3f4f6"
: undefined,
}}
>
{item.imageUrl ? (
<GearImage
src={item.imageUrl}
alt={`${item.brand} ${item.model}`}
/>
<GearImage src={item.imageUrl} alt={`${item.brand} ${item.model}`} />
) : (
<div className="w-full h-full bg-gray-50 flex items-center justify-center">
<svg
@@ -707,15 +705,13 @@ function ListRow({ item, onAdd, onCardClick, weight, price }: CardProps) {
className="w-12 h-12 rounded-lg shrink-0 overflow-hidden"
style={{
backgroundColor: item.imageUrl
? ((item as Record<string, unknown>).dominantColor as string) || "#f3f4f6"
? ((item as Record<string, unknown>).dominantColor as string) ||
"#f3f4f6"
: undefined,
}}
>
{item.imageUrl ? (
<GearImage
src={item.imageUrl}
alt={`${item.brand} ${item.model}`}
/>
<GearImage src={item.imageUrl} alt={`${item.brand} ${item.model}`} />
) : (
<div className="w-full h-full bg-gray-50 flex items-center justify-center">
<svg