From 7209a36752b1ef2c98f4ce626b9d88fa6a180d38 Mon Sep 17 00:00:00 2001
From: Lncvrt
Date: Sat, 14 Feb 2026 13:45:21 -0700
Subject: [PATCH] Make this have less code
---
src/app/layout.tsx | 55 +++++++++++++++++++---------------------------
1 file changed, 22 insertions(+), 33 deletions(-)
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index bd269a1..0d64cce 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -751,34 +751,18 @@ export default function RootLayout ({
{getVersionInfo(v.version)?.displayName}
- {v.failed ? (
+ {v.failed || v.queued ? (
-
- Download failed
-
-
-
- ) : v.queued ? (
-
-
- {queuePosition === 0
+ {v.failed
+ ? 'Download failed'
+ : queuePosition === 0
? 'Starting soon...'
: `Queued (Position ${
queuePosition + 1
@@ -803,13 +787,18 @@ export default function RootLayout ({
Remove
- ) : v.hash_checking ? (
-
- Checking hash...
-
- ) : v.finishing ? (
-
- Finishing...
+ ) : v.hash_checking || v.finishing ? (
+
+ {v.hash_checking
+ ? 'Checking hash'
+ : 'Finishing'}
+ ...
) : (