From bf824f856170b1ab93b6897ffe245c21619f8344 Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Sat, 14 Feb 2026 03:33:09 +0800 Subject: [PATCH] fix(clipboard): add shared helper and remove lint warnings --- src/components/config/VisualConfigEditor.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/config/VisualConfigEditor.tsx b/src/components/config/VisualConfigEditor.tsx index b47f9ad..d75208c 100644 --- a/src/components/config/VisualConfigEditor.tsx +++ b/src/components/config/VisualConfigEditor.tsx @@ -409,7 +409,7 @@ function PayloadRulesEditor({ protocolFirst?: boolean; onChange: (next: PayloadRule[]) => void; }) { - const { t, i18n } = useTranslation(); + const { t } = useTranslation(); const rules = value.length ? value : []; const protocolOptions = useMemo( () => @@ -417,7 +417,7 @@ function PayloadRulesEditor({ value: option.value, label: t(option.labelKey, { defaultValue: option.defaultLabel }), })), - [t, i18n.resolvedLanguage] + [t] ); const payloadValueTypeOptions = useMemo( () => @@ -425,7 +425,7 @@ function PayloadRulesEditor({ value: option.value, label: t(option.labelKey, { defaultValue: option.defaultLabel }), })), - [t, i18n.resolvedLanguage] + [t] ); const addRule = () => onChange([...rules, { id: makeClientId(), models: [], params: [] }]); @@ -668,7 +668,7 @@ function PayloadFilterRulesEditor({ disabled?: boolean; onChange: (next: PayloadFilterRule[]) => void; }) { - const { t, i18n } = useTranslation(); + const { t } = useTranslation(); const rules = value.length ? value : []; const protocolOptions = useMemo( () => @@ -676,7 +676,7 @@ function PayloadFilterRulesEditor({ value: option.value, label: t(option.labelKey, { defaultValue: option.defaultLabel }), })), - [t, i18n.resolvedLanguage] + [t] ); const addRule = () => onChange([...rules, { id: makeClientId(), models: [], params: [] }]);