From d4118295a389344ff08daa6c062ed135e7348659 Mon Sep 17 00:00:00 2001 From: StarsSail <152023695+wysha-object@users.noreply.github.com> Date: Mon, 6 Jul 2026 10:43:18 +0800 Subject: [PATCH] fix: remove unnecessary input fields (#7423) * fix: remove unnecessary input fields * fix: remove unnecessary input fields from ProfileViewer component --- src/components/profile/profile-viewer.tsx | 68 ++++++++++------------- 1 file changed, 30 insertions(+), 38 deletions(-) diff --git a/src/components/profile/profile-viewer.tsx b/src/components/profile/profile-viewer.tsx index 1de50cd89..6fb3750eb 100644 --- a/src/components/profile/profile-viewer.tsx +++ b/src/components/profile/profile-viewer.tsx @@ -271,6 +271,15 @@ export function ProfileViewer({ onChange, ref }: ProfileViewerProps) { )} /> + {isLocal && openType === 'new' && ( + { + setValue('name', getValues('name') || file.name) + fileDataRef.current = val + }} + /> + )} + {isRemote && ( <> )} /> - - )} - - {(isRemote || isLocal) && ( - ( - - {t('shared.units.minutes')} - - ), - }, - }} - /> - )} - /> - )} - - {isLocal && openType === 'new' && ( - { - setValue('name', getValues('name') || file.name) - fileDataRef.current = val - }} - /> - )} - - {isRemote && ( - <> + ( + + {t('shared.units.minutes')} + + ), + }, + }} + /> + )} + />