Update settings.tsx

This commit is contained in:
yangt1997 2023-04-22 23:33:31 +08:00 committed by GitHub
parent 1747b5b273
commit 6b1d7827a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -336,19 +336,7 @@ export function Settings() {
: Locale.Settings.Update.IsLatest : Locale.Settings.Update.IsLatest
} }
> >
{checkingUpdate ? (
<div />
) : hasNewVersion ? (
<Link href={UPDATE_URL} target="_blank" className="link">
{Locale.Settings.Update.GoToUpdate}
</Link>
) : (
<IconButton
icon={<ResetIcon></ResetIcon>}
text={Locale.Settings.Update.CheckUpdate}
onClick={() => checkUpdate(true)}
/>
)}
</SettingItem> </SettingItem>
<SettingItem title={Locale.Settings.SendKey}> <SettingItem title={Locale.Settings.SendKey}>