Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

refactor(translator): remove unused onSlugChange prop from AdvancedSection (GAP-NOVO-6)

diegosouzapw053e62dcf8be
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");