mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-14 21:20:48 +08:00
fix(layout): restore "New" label in update button
Closes #8000 Co-authored-by: ❤是纱雾酱哟~ <49941141+Dragon1573@users.noreply.github.com>
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user