From 9573344450de451b8f9c7295c11318010d67f1d5 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Mon, 21 Jul 2025 10:05:39 -0400 Subject: Refresh UI (#117) * initial visual refinement * rm dupe status pops * hide other menus if uninstalled opti * bump ver * fix ver bump --- src/components/ResultDisplay.tsx | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) (limited to 'src/components/ResultDisplay.tsx') diff --git a/src/components/ResultDisplay.tsx b/src/components/ResultDisplay.tsx index 0f58f0e..bcd66c0 100644 --- a/src/components/ResultDisplay.tsx +++ b/src/components/ResultDisplay.tsx @@ -12,25 +12,30 @@ interface ResultDisplayProps { export const ResultDisplay: FC = ({ result }) => { if (!result) return null; + const isSuccess = result.status === "success"; + return ( -
- Status:{" "} - - {result.status === "success" ? "Success" : "Error"} - -
- {result.output ? ( +
+ {isSuccess ? ( <> - Output: -
{result.output}
+ ✅ {result.output?.includes("uninstall") || result.output?.includes("remov") + ? "OptiScaler mod removed successfully" + : "OptiScaler mod installed successfully"} - ) : null} - {result.message ? ( + ) : ( <> - Error: {result.message} + ❌ Error: {result.message || "Operation failed"} - ) : null} + )} + {result.output && !isSuccess && ( +
+ View Details +
+              {result.output}
+            
+
+ )}
); -- cgit v1.2.3