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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user