From 7d3c57092b6fb61fcde3f473bbc7115fcd2117ce Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Sat, 2 May 2026 03:22:32 +0800 Subject: [PATCH] refactor: remove unused fields and streamline auth file editor logic --- .../AuthFilesPrefixProxyEditorModal.tsx | 33 --- .../hooks/useAuthFilesPrefixProxyEditor.ts | 272 +++++++++++------- src/services/api/authFiles.ts | 10 + 3 files changed, 175 insertions(+), 140 deletions(-) diff --git a/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx b/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx index 2ac6ed2..020192c 100644 --- a/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx +++ b/src/features/authFiles/components/AuthFilesPrefixProxyEditorModal.tsx @@ -3,7 +3,6 @@ import { Modal } from '@/components/ui/Modal'; import { Button } from '@/components/ui/Button'; import { LoadingSpinner } from '@/components/ui/LoadingSpinner'; import { Input } from '@/components/ui/Input'; -import { ToggleSwitch } from '@/components/ui/ToggleSwitch'; import type { PrefixProxyEditorField, PrefixProxyEditorFieldValue, @@ -132,18 +131,6 @@ export function AuthFilesPrefixProxyEditorModal(props: AuthFilesPrefixProxyEdito disabled={disableControls || editor.saving || !editor.json} onChange={(e) => onChange('priority', e.target.value)} /> -
- -