From 7b486292a062b79cff7c2f20b316d5ff4b452768 Mon Sep 17 00:00:00 2001 From: CCS Admin Date: Sun, 15 Feb 2026 21:52:04 +0000 Subject: [PATCH] fix: correct TypeScript destructuring for unused vars - Use rename syntax (filterCategory: _filterCategory) instead of direct rename - Fix FavoritesBlock layout destructuring Co-Authored-By: Claude Opus 4.6 --- src/components/blocks/FAQBlock.tsx | 2 +- src/components/blocks/FavoritesBlock.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/blocks/FAQBlock.tsx b/src/components/blocks/FAQBlock.tsx index c55dd35..0868ed3 100644 --- a/src/components/blocks/FAQBlock.tsx +++ b/src/components/blocks/FAQBlock.tsx @@ -15,7 +15,7 @@ export function FAQBlock({ subtitle, displayMode, selectedFaqs, - _filterCategory, + filterCategory: _filterCategory, layout = 'accordion', expandFirst = false, showSchema = true, diff --git a/src/components/blocks/FavoritesBlock.tsx b/src/components/blocks/FavoritesBlock.tsx index e43ebb9..50dbb32 100644 --- a/src/components/blocks/FavoritesBlock.tsx +++ b/src/components/blocks/FavoritesBlock.tsx @@ -12,7 +12,7 @@ export async function FavoritesBlock({ displayMode, selectedFavorites, filterCategory, - _layout = 'grid', + layout: _layout = 'grid', columns = 3, limit = 12, showPrice = true,