Skip to content

Commit f21a35e

Browse files
authored
fix: update information storage cache and styles (#735)
1 parent 6e90b28 commit f21a35e

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/UpdateApp/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,11 @@ const UpdateApp = ({ isCheckPage }: UpdateAppProps) => {
125125
className="relative z-10 focus:outline-none"
126126
onClose={noop}
127127
>
128-
<div className="fixed inset-0 z-10 w-screen overflow-y-auto">
128+
<div className={`fixed inset-0 z-10 w-screen overflow-y-auto ${isCheckPage ? "rounded-lg bg-white dark:bg-[#333] border border-[#EDEDED] dark:border-black/20 shadow-md" : ""}`}>
129129
<div className={clsx("flex min-h-full items-center justify-center", !isCheckPage && "p-4")}>
130130
<DialogPanel
131131
transition
132-
className={`relative w-[340px] py-8 flex flex-col items-center bg-white shadow-md border border-[#EDEDED] dark:bg-[#333] dark:border-black/20 ${isCheckPage ? "" : "rounded-lg"}`}
132+
className={`relative w-[340px] py-8 flex flex-col items-center ${isCheckPage ? "" : "rounded-lg bg-white dark:bg-[#333] border border-[#EDEDED] dark:border-black/20 shadow-md"}`}
133133
>
134134
{!isCheckPage && isOptional && (
135135
<X
@@ -162,7 +162,7 @@ const UpdateApp = ({ isCheckPage }: UpdateAppProps) => {
162162
</div>
163163
) : (
164164
<div className={clsx("text-xs text-[#999]", cursorClassName)}>
165-
{t("update.latest", { replace: [updateInfo?.version] })}
165+
{t("update.latest", { replace: [updateInfo?.version || "v0.6.0"] })}
166166
</div>
167167
)}
168168

src/stores/updateStore.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const useUpdateStore = create<IUpdateStore>()(
3434
name: "update-store",
3535
partialize: (state) => ({
3636
skipVersion: state.skipVersion,
37+
updateInfo: state.updateInfo,
3738
}),
3839
}
3940
)

0 commit comments

Comments
 (0)