From 92af5c3f241769fb6f382cc95fb6936e8b62f91f Mon Sep 17 00:00:00 2001
From: Mia Wong
Date: Tue, 20 Aug 2024 13:32:12 +0000
Subject: [PATCH] clean up2
---
.../components/AvailableUpdateCard.tsx | 135 +++++++++---------
1 file changed, 64 insertions(+), 71 deletions(-)
diff --git a/web/src/features/Dashboard/components/AvailableUpdateCard.tsx b/web/src/features/Dashboard/components/AvailableUpdateCard.tsx
index 461698c3f6..a25042d39e 100644
--- a/web/src/features/Dashboard/components/AvailableUpdateCard.tsx
+++ b/web/src/features/Dashboard/components/AvailableUpdateCard.tsx
@@ -32,88 +32,81 @@ const AvailableUpdateCard = ({
Latest Available Update
- {updates && updates.length > 0 && (
-
- ({updates.length} available)
-
- )}
+
+ ({updates.length} available)
+
- {updates && updates.length > 0 && (
-
-
-
-
-
-
- {update.versionLabel}
-
- {update.isRequired && (
-
- {" "}
- Required{" "}
-
- )}
-
- {update.upstreamReleasedAt && (
-
+
+
+
+
+
+
+ {update.versionLabel}
+
+ {update.isRequired && (
+
{" "}
- Released{" "}
-
- {Utilities.dateFormat(
- update.upstreamReleasedAt,
- "MM/DD/YY @ hh:mm a z"
- )}
-
-
+ Required{" "}
+
)}
-
- {update?.releaseNotes && (
- <>
-
showReleaseNotes(update?.releaseNotes)}
- data-tip="View release notes"
- className="u-marginRight--5 clickable"
- />
-
- >
- )}
+ {update.upstreamReleasedAt && (
+
+ {" "}
+ Released{" "}
+
+ {Utilities.dateFormat(
+ update.upstreamReleasedAt,
+ "MM/DD/YY @ hh:mm a z"
+ )}
+
+
+ )}
+
+
+ {update?.releaseNotes && (
+ <>
+ showReleaseNotes(update?.releaseNotes)}
+ data-tip="View release notes"
+ className="u-marginRight--5 clickable"
+ />
+
+ >
+ )}
-
+
-
+ Go to Version history
+
+
- {upgradeService?.error &&
- upgradeService?.versionLabel === update.versionLabel && (
-
-
- {upgradeService.error}
-
-
- )}
+ {upgradeService?.error &&
+ upgradeService?.versionLabel === update.versionLabel && (
+
+
+ {upgradeService.error}
+
+
+ )}
- )}
+
);
};