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} + +
+ )}
- )} +
); };