From b5d0a7eb953408d404dc2b69483efe1814cd7c0b Mon Sep 17 00:00:00 2001 From: tanjiro <56165694+NANDINI-star@users.noreply.github.com> Date: Fri, 15 Aug 2025 00:26:15 +0900 Subject: [PATCH] adding missing imports + removing unused imports (#13610) --- ui/litellm-dashboard/src/components/SSOModals.tsx | 1 + ui/litellm-dashboard/src/components/SSOSettings.tsx | 1 + ui/litellm-dashboard/src/components/mcp_tools/mcp_tools.tsx | 1 - ui/litellm-dashboard/src/components/teams.tsx | 3 ++- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/components/SSOModals.tsx b/ui/litellm-dashboard/src/components/SSOModals.tsx index f650badf9f..24984774d6 100644 --- a/ui/litellm-dashboard/src/components/SSOModals.tsx +++ b/ui/litellm-dashboard/src/components/SSOModals.tsx @@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react"; import { Modal, Form, Input, Button as Button2, Select, message } from "antd"; import { Text, TextInput } from "@tremor/react"; import { getSSOSettings, updateSSOSettings } from "./networking"; +import NotificationManager from "./molecules/notifications_manager"; interface SSOModalsProps { isAddSSOModalVisible: boolean; diff --git a/ui/litellm-dashboard/src/components/SSOSettings.tsx b/ui/litellm-dashboard/src/components/SSOSettings.tsx index 68085b046b..0cb5a5fd57 100644 --- a/ui/litellm-dashboard/src/components/SSOSettings.tsx +++ b/ui/litellm-dashboard/src/components/SSOSettings.tsx @@ -6,6 +6,7 @@ import { getInternalUserSettings, updateInternalUserSettings, modelAvailableCall import BudgetDurationDropdown, { getBudgetDurationLabel } from "./common_components/budget_duration_dropdown"; import { getModelDisplayName } from "./key_team_helpers/fetch_available_models_team_key"; import { formatNumberWithCommas } from "@/utils/dataUtils"; +import NotificationManager from "./molecules/notifications_manager"; interface SSOSettingsProps { accessToken: string | null; 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 a8682467a4..b2ba26875f 100644 --- a/ui/litellm-dashboard/src/components/mcp_tools/mcp_tools.tsx +++ b/ui/litellm-dashboard/src/components/mcp_tools/mcp_tools.tsx @@ -20,7 +20,6 @@ import { Button, Card, Title, Text } from "@tremor/react"; import { RobotOutlined, ApiOutlined, KeyOutlined, SafetyOutlined, ToolOutlined } from "@ant-design/icons"; import { AUTH_TYPE } from "./types"; -import NotificationManager from "../molecules/notifications_manager"; type AuthModalProps = { visible: boolean; diff --git a/ui/litellm-dashboard/src/components/teams.tsx b/ui/litellm-dashboard/src/components/teams.tsx index cc76334193..a852302554 100644 --- a/ui/litellm-dashboard/src/components/teams.tsx +++ b/ui/litellm-dashboard/src/components/teams.tsx @@ -111,6 +111,7 @@ import { v2TeamListCall, } from "./networking"; import { updateExistingKeys } from "@/utils/dataUtils"; +import NotificationManager from "./molecules/notifications_manager"; interface TeamInfo { members_with_roles: Member[]; @@ -464,7 +465,7 @@ const Teams: React.FC = ({ } } catch (error) { console.error("Error creating the team:", error); - NotificationManager.fromBackend("Error creating the team: " + error, 20); + NotificationManager.fromBackend("Error creating the team: " + error); } };