diff --git a/web/app/(app)/dashboard/(components)/api-keys.tsx b/web/app/(app)/dashboard/(components)/api-keys.tsx index 687fae8..4ff4c0e 100644 --- a/web/app/(app)/dashboard/(components)/api-keys.tsx +++ b/web/app/(app)/dashboard/(components)/api-keys.tsx @@ -29,6 +29,7 @@ import { } from '@/lib/api' import { Skeleton } from '@/components/ui/skeleton' import EmptyState from '@/components/shared/empty-state' +import ErrorState from '@/components/shared/error-state' import RelativeTime from '@/components/shared/relative-time' import GenerateApiKey, { type GenerateApiKeyHandle, @@ -60,7 +61,12 @@ export default function ApiKeys() { const { toast } = useToast() - const { isPending, error, data: apiKeys } = useApiKeys('active') + const { + isPending, + error, + data: apiKeys, + refetch, + } = useApiKeys('active') const { data: revokedKeysData, isPending: isRevokedPending } = useApiKeys( 'revoked', @@ -185,9 +191,12 @@ export default function ApiKeys() { )} {error && ( -
{title}
+{message}
+ {onRetry && ( + + )} +