fix theme color
Some checks failed
Deploy Backend / deploy (push) Successful in 4m25s
Deploy Website / deploy (push) Failing after 2m45s

This commit is contained in:
Lee
2024-10-16 08:21:27 +01:00
parent cb7143ed3d
commit 1e8a9b9a59
5 changed files with 29 additions and 17 deletions

View File

@ -32,7 +32,9 @@ export function ApiHealth() {
if (previousOnlineStatus.current !== online) {
toast({
title: `The API is now ${online ? "Online" : "Offline"}!`,
description: online ? "The API has recovered connectivity." : "The API has lost connectivity.",
description: online
? "The API has recovered connectivity."
: "The API has lost connectivity, some data may be unavailable.",
variant: online ? "success" : "destructive",
duration: 10_000, // 10 seconds
});