feat(auto-updater, ui): rename DesktopUpdatePrompt with DesktopUpdateToast

This commit is contained in:
Anish Sarkar 2026-05-26 11:57:50 +05:30
parent bf4e60d224
commit 7276210403
2 changed files with 6 additions and 6 deletions

View file

@ -5,12 +5,12 @@ import { useEffect, useState } from "react";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
type UpdatePromptState = {
type UpdateToastState = {
version: string;
};
export function DesktopUpdatePrompt() {
const [update, setUpdate] = useState<UpdatePromptState | null>(null);
export function DesktopUpdateToast() {
const [update, setUpdate] = useState<UpdateToastState | null>(null);
useEffect(() => {
const api = window.electronAPI;
@ -71,7 +71,7 @@ export function DesktopUpdatePrompt() {
variant="ghost"
size="icon"
className="absolute right-2 top-2 size-7 text-muted-foreground hover:bg-transparent hover:text-foreground"
aria-label="Dismiss update prompt"
aria-label="Dismiss update toast"
onClick={() => setUpdate(null)}
>
<X className="size-4" strokeWidth={1.8} />