From 9972319285087f4573f41cd261bfe664e05d1391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Fri, 10 Mar 2023 18:07:16 +0800 Subject: [PATCH] chore: typo --- src/components/update/index.tsx | 5 ++--- src/components/update/update.module.scss | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/components/update/index.tsx b/src/components/update/index.tsx index 732cb9a..742784b 100644 --- a/src/components/update/index.tsx +++ b/src/components/update/index.tsx @@ -60,7 +60,6 @@ const Update = () => { }, []) const onDownloadProgress = useCallback((_event: Electron.IpcRendererEvent, arg1: ProgressInfo) => { - setUpdateAvailable(true) setProgressInfo(arg1) }, []) @@ -108,7 +107,7 @@ const Update = () => { ) : updateAvailable ? ( -
+
The last version is: v{versionInfo?.newVersion}
v{versionInfo?.version} -> v{versionInfo?.newVersion}
@@ -120,7 +119,7 @@ const Update = () => {
) : ( -
Now is the last version: v{versionInfo?.version}.
+
{JSON.stringify(versionInfo ?? {}, null, 2)}
)}
diff --git a/src/components/update/update.module.scss b/src/components/update/update.module.scss index 865a4e0..32fa35b 100644 --- a/src/components/update/update.module.scss +++ b/src/components/update/update.module.scss @@ -17,15 +17,14 @@ flex-grow: 1; } - .new-version { + .can-available { .new-version-target,.update-progress { margin-left: 40px; } } - .last-version { - height: 80px; - line-height: 80px; + .can-not-available { + padding: 20px; text-align: center; } }