From 153eaba5f3f291aac630058258f9b48134995ee8 Mon Sep 17 00:00:00 2001 From: Jamie Pine Date: Wed, 28 Jan 2026 15:14:05 -0800 Subject: [PATCH] Refactor UpdateStatus component for improved UI and code organization - Adjusted the order of import statements for better readability. - Updated the conditional rendering logic to display a different message when an update is not ready to install, enhancing user feedback. --- app/src/components/ServerSettings/UpdateStatus.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/components/ServerSettings/UpdateStatus.tsx b/app/src/components/ServerSettings/UpdateStatus.tsx index c946e421..dde4bd6c 100644 --- a/app/src/components/ServerSettings/UpdateStatus.tsx +++ b/app/src/components/ServerSettings/UpdateStatus.tsx @@ -1,5 +1,5 @@ import { getVersion } from '@tauri-apps/api/app'; -import { RefreshCw, Download, AlertCircle } from 'lucide-react'; +import { AlertCircle, Download, RefreshCw } from 'lucide-react'; import { useEffect, useState } from 'react'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; @@ -92,8 +92,8 @@ export function UpdateStatus() { )} - {status.readyToInstall && ( -
+ {!status.readyToInstall && ( +
Update Ready to Install