From 3458c9b07531a5e52a2a304f38b8a6ee57c3cdbf Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Thu, 24 Sep 2026 15:22:36 +0800 Subject: [PATCH] fix(layout): restore "New" label in update button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #8000 Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com> --- src/components/layout/update-button.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/layout/update-button.tsx b/src/components/layout/update-button.tsx index 8cfe36afc..67e4c1100 100644 --- a/src/components/layout/update-button.tsx +++ b/src/components/layout/update-button.tsx @@ -1,6 +1,5 @@ import { Button } from '@mui/material' import { useRef } from 'react' -import { useTranslation } from 'react-i18next' import { DialogRef } from '@/components/base' import { useUpdate } from '@/hooks/use-update' @@ -13,7 +12,6 @@ interface Props { export const UpdateButton = (props: Props) => { const { className } = props - const { t } = useTranslation() const viewerRef = useRef(null) const { updateInfo } = useUpdate() @@ -31,7 +29,7 @@ export const UpdateButton = (props: Props) => { className={className} onClick={() => viewerRef.current?.open()} > - {t('shared.actions.new')} + New )