diff --git a/apps/desktop/src/renderer/src/components/update-notification.tsx b/apps/desktop/src/renderer/src/components/update-notification.tsx index 4eb85fdf..c48b10a4 100644 --- a/apps/desktop/src/renderer/src/components/update-notification.tsx +++ b/apps/desktop/src/renderer/src/components/update-notification.tsx @@ -3,14 +3,13 @@ * Shows when a new version is available and allows user to download/install */ import { useState, useEffect } from 'react' -import { HugeiconsIcon } from '@hugeicons/react' import { - Download04Icon, - Loading03Icon, - CheckmarkCircle02Icon, - AlertCircleIcon, - Cancel01Icon, -} from '@hugeicons/core-free-icons' + Download, + Loader2, + CheckCircle, + AlertCircle, + X, +} from 'lucide-react' import { Button } from '@multica/ui/components/ui/button' interface UpdateInfo { @@ -77,13 +76,13 @@ export function UpdateNotification(): React.JSX.Element | null { className={`flex h-8 w-8 items-center justify-center rounded-full ${isError ? 'bg-destructive/10' : 'bg-primary/10'}`} > {isError ? ( - + ) : updateStatus.status === 'downloaded' ? ( - + ) : updateStatus.status === 'downloading' ? ( - + ) : ( - + )} @@ -134,7 +133,7 @@ export function UpdateNotification(): React.JSX.Element | null { )} {updateStatus.status !== 'downloading' && ( )} diff --git a/apps/desktop/src/renderer/src/pages/layout.tsx b/apps/desktop/src/renderer/src/pages/layout.tsx index 59f366ff..3a06a9eb 100644 --- a/apps/desktop/src/renderer/src/pages/layout.tsx +++ b/apps/desktop/src/renderer/src/pages/layout.tsx @@ -28,6 +28,7 @@ import { import { cn } from '@multica/ui/lib/utils' import { ModeToggle } from '../components/mode-toggle' import { DeviceConfirmDialog } from '../components/device-confirm-dialog' +import { UpdateNotification } from '../components/update-notification' const mainNavItems = [ { path: '/', label: 'Home', icon: Home }, @@ -204,6 +205,7 @@ export default function Layout() { + )