Skip to content

Commit dfd3c71

Browse files
fix: refresh update banner CTA (#5065)
Use a neutral-50 banner surface, turn update-and-restart into a strong CTA, and replace the close icon with a Later action.
1 parent 91b789e commit dfd3c71

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

apps/desktop/src/main2/update.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useRouterState } from "@tanstack/react-router";
22
import { type UnlistenFn } from "@tauri-apps/api/event";
33
import { message } from "@tauri-apps/plugin-dialog";
4-
import { XIcon } from "lucide-react";
54
import { useCallback, useEffect, useRef, useState } from "react";
65

76
import { commands, events } from "@hypr/plugin-updater2";
@@ -50,30 +49,31 @@ export function UpdateBanner() {
5049
<div
5150
className={cn([
5251
"flex items-center justify-center gap-3 px-4 py-1.5",
53-
"bg-neutral-100 text-sm text-neutral-700",
52+
"bg-neutral-50 text-sm text-neutral-700",
5453
])}
5554
>
56-
<span>v{version} available</span>
55+
<span>New version {version} is ready.</span>
5756
{isDownloading ? (
5857
<DownloadProgress progress={progress} />
5958
) : (
6059
<Button
6160
size="sm"
62-
variant="outline"
6361
onClick={handleInstallUpdate}
6462
disabled={installing}
65-
className="h-7 px-3 text-xs font-medium"
63+
className="h-7 bg-black px-3 text-xs font-medium text-white hover:bg-neutral-800"
6664
>
6765
{installing ? "Installing..." : "Update & Restart"}
6866
</Button>
6967
)}
70-
<button
68+
<Button
7169
type="button"
70+
size="sm"
71+
variant="ghost"
7272
onClick={() => setDismissed(true)}
73-
className="ml-1 text-neutral-400 hover:text-neutral-600"
73+
className="h-7 px-2 text-xs font-medium text-neutral-500 hover:bg-transparent hover:text-neutral-700"
7474
>
75-
<XIcon size={14} />
76-
</button>
75+
Later
76+
</Button>
7777
</div>
7878
);
7979
}

0 commit comments

Comments
 (0)