File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments