Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

ui fix linting errors

Ishaan Jaff321fc09b3e91
diff --git a/ui/litellm-dashboard/src/components/mcp_tools/mcp_tools.tsx b/ui/litellm-dashboard/src/components/mcp_tools/mcp_tools.tsx
index eb45ae21461..26cd758678d 100644
--- a/ui/litellm-dashboard/src/components/mcp_tools/mcp_tools.tsx
+++ b/ui/litellm-dashboard/src/components/mcp_tools/mcp_tools.tsx
@@ -89,12 +89,18 @@ export const AuthModal = ({
);
};
-const AuthSection = ({ authType, onAuthSubmit }) => {
+const AuthSection = ({
+ authType,
+ onAuthSubmit
+}: {
+ authType: string | null | undefined;
+ onAuthSubmit: (value: string) => void;
+}) => {
const [modalVisible, setModalVisible] = useState(false);
const handleAddAuth = () => setModalVisible(true);
- const handleModalOk = (authValue) => {
+ const handleModalOk = (authValue: string) => {
onAuthSubmit(authValue);
setModalVisible(false);
};
@@ -239,7 +245,7 @@ const MCPToolsViewer = ({
{mcpServerHasAuth(auth_type) && (
<AuthSection
authType={auth_type}
- onAuthSubmit={(value) => {
+ onAuthSubmit={(value: string) => {
setMcpAuthValue(value);
}}
/>