fix(layout): restore "New" label in update button

Closes #8000

Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
This commit is contained in:
Tunglies
2026-09-24 15:23:35 +08:00
co-authored by ❤是纱雾酱哟~
parent afc32f568a
commit 3458c9b075
+1 -3
View File
@@ -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<DialogRef>(null)
const { updateInfo } = useUpdate()
@@ -31,7 +29,7 @@ export const UpdateButton = (props: Props) => {
className={className}
onClick={() => viewerRef.current?.open()}
>
{t('shared.actions.new')}
New
</Button>
</>
)