diff --git a/ui/litellm-dashboard/src/components/logging_settings_view.tsx b/ui/litellm-dashboard/src/components/logging_settings_view.tsx
index 1f454f0b20..079711d196 100644
--- a/ui/litellm-dashboard/src/components/logging_settings_view.tsx
+++ b/ui/litellm-dashboard/src/components/logging_settings_view.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import { Text, Badge } from "@tremor/react";
+import { Tag } from "antd";
import { CogIcon, BanIcon } from "@heroicons/react/outline";
import { callbackInfo, callback_map, reverse_callback_map } from "./callback_info_helpers";
@@ -28,7 +28,7 @@ export function LoggingSettingsView({
return callbackDisplayName || callbackName;
};
- const getEventTypeColor = (eventType: string) => {
+ const getEventTypeColor = (eventType: string): string | undefined => {
switch (eventType) {
case "success":
return "green";
@@ -37,7 +37,7 @@ export function LoggingSettingsView({
case "success_and_failure":
return "blue";
default:
- return "gray";
+ return undefined;
}
};
@@ -60,10 +60,10 @@ export function LoggingSettingsView({
- Logging Integrations
-
+ Logging Integrations
+
{loggingConfigs.length}
-
+
{loggingConfigs.length > 0 ? (
@@ -84,15 +84,15 @@ export function LoggingSettingsView({
)}
- {displayName}
-
+ {displayName}
+
{Object.keys(config.callback_vars).length} parameters configured
-
+
-
+
{getEventTypeLabel(config.callback_type)}
-
+
);
})}
@@ -100,7 +100,7 @@ export function LoggingSettingsView({
) : (
- No logging integrations configured
+ No logging integrations configured
)}
@@ -109,10 +109,10 @@ export function LoggingSettingsView({
- Disabled Callbacks
-
+ Disabled Callbacks
+
{disabledCallbacks.length}
-
+
{disabledCallbacks.length > 0 ? (
@@ -134,13 +134,13 @@ export function LoggingSettingsView({
)}
- {displayName}
- Disabled for this key
+ {displayName}
+ Disabled for this key
-
+
Disabled
-
+
);
})}
@@ -148,7 +148,7 @@ export function LoggingSettingsView({
) : (
- No callbacks disabled
+ No callbacks disabled
)}
@@ -160,10 +160,10 @@ export function LoggingSettingsView({
- Logging Settings
-
+ Logging Settings
+
Active logging integrations and disabled callbacks for this key
-
+
{content}
@@ -173,7 +173,7 @@ export function LoggingSettingsView({
return (
- Logging Settings
+ Logging Settings
{content}
);