Merge pull request #1297 from yanCode/enhancement/loading-icon

fix: show Loading Icon when checking repo update
This commit is contained in:
Yifei Zhang 2023-05-07 00:36:40 +08:00 committed by GitHub
commit 8265436437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import AddIcon from "../icons/add.svg";
import CloseIcon from "../icons/close.svg";
import CopyIcon from "../icons/copy.svg";
import ClearIcon from "../icons/clear.svg";
import LoadingIcon from "../icons/three-dots.svg";
import EditIcon from "../icons/edit.svg";
import EyeIcon from "../icons/eye.svg";
import { Input, List, ListItem, Modal, PasswordInput, Popover } from "./ui-lib";
@ -352,7 +353,7 @@ export function Settings() {
}
>
{checkingUpdate ? (
<div />
<LoadingIcon />
) : hasNewVersion ? (
<Link href={UPDATE_URL} target="_blank" className="link">
{Locale.Settings.Update.GoToUpdate}