From 053e62dcf8befb278d59b9c2a1816a91bc6d9108 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Thu, 28 May 2026 16:25:20 -0300 Subject: [PATCH] refactor(translator): remove unused onSlugChange prop from AdvancedSection (GAP-NOVO-6) Prop was declared but destructured as _onSlugChange (never consumed). TranslatorPageClient relies on onOpenChange callbacks on each child accordion instead. Cleaning the interface. --- .../translator/components/advanced/AdvancedSection.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/app/(dashboard)/dashboard/translator/components/advanced/AdvancedSection.tsx b/src/app/(dashboard)/dashboard/translator/components/advanced/AdvancedSection.tsx index f49c689a60..6833a6f774 100644 --- a/src/app/(dashboard)/dashboard/translator/components/advanced/AdvancedSection.tsx +++ b/src/app/(dashboard)/dashboard/translator/components/advanced/AdvancedSection.tsx @@ -8,8 +8,6 @@ import type { AdvancedSlug } from "../../types"; export interface AdvancedSectionProps { /** Slug to force-open on initial mount (deep-link from URL). */ forceOpenSlug?: AdvancedSlug | null; - /** Callback when a sub-accordion opens or closes (F9 syncs with URL). */ - onSlugChange?: (slug: AdvancedSlug | null) => void; /** F9 passes the 5 accordions as children, each with a slug prop. */ children?: ReactNode; } @@ -25,7 +23,6 @@ export interface AdvancedSectionProps { */ export default function AdvancedSection({ forceOpenSlug, - onSlugChange: _onSlugChange, children, }: AdvancedSectionProps) { const t = useTranslations("translator");