diff --git a/litellm/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/CustomerBudgetSummary.tsx b/litellm/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/CustomerBudgetSummary.tsx index 69c98d614ec..6384f14d5ab 100644 --- a/litellm/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/CustomerBudgetSummary.tsx +++ b/litellm/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/CustomerBudgetSummary.tsx @@ -1,6 +1,6 @@ import { useTranslation } from "react-i18next"; import type { CustomerUsageEntity } from "./customerUsageApi"; -import CustomerBudgetSpend, { CustomerBudgetWindow } from "./CustomerBudgetSpend"; +import { CustomerBudgetWindow } from "./CustomerBudgetSpend"; import { CUSTOMER_BUDGET_LABELS, customerBudgetPeriod, customerBudgetUsage } from "./customerBudgetUsage"; export default function CustomerBudgetSummary({ @@ -35,10 +35,10 @@ export default function CustomerBudgetSummary({ ); })} - {budgets.length === 0 && ( - + {budgets.length === 0 &&

{t("customerPortal.analytics.noBudget")}

} + {budgets.length > 0 && ( +

{t("customerPortal.analytics.budgetUsageHint")}

)} -

{t("customerPortal.analytics.budgetUsageHint")}

); } diff --git a/litellm/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/CustomerHierarchyManager.tsx b/litellm/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/CustomerHierarchyManager.tsx index ad75a9b62f5..f3d33f82db1 100644 --- a/litellm/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/CustomerHierarchyManager.tsx +++ b/litellm/ui/litellm-dashboard/src/app/(dashboard)/customers/_components/CustomerHierarchyManager.tsx @@ -9,8 +9,7 @@ import { ErrorState } from "@/components/shared/ErrorState"; import { Button } from "@/components/ui/button"; import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@/components/ui/table"; import { extractProxyErrorMessage } from "@/lib/http/client"; -import { uiHref } from "@/utils/uiHref"; -import CustomerHierarchyNavigation, { customerHierarchyHref } from "./CustomerHierarchyNavigation"; +import CustomerHierarchyNavigation, { useCustomerHierarchyLinks } from "./CustomerHierarchyNavigation"; import CustomerHierarchySettings from "./CustomerHierarchySettings"; import CustomerBudgetGroups from "./CustomerBudgetGroups"; import CustomerBudgetSummary from "./CustomerBudgetSummary"; @@ -39,6 +38,7 @@ const DESCRIPTION_KEYS = { function HierarchyHeader({ hierarchy, selected }: Pick) { const { t } = useTranslation(); + const { customerHierarchyHref, customersHref } = useCustomerHierarchyLinks(); const entity = selected.entity; const team = selected.team; const label = customerEntityLabel(entity); @@ -70,7 +70,7 @@ function HierarchyHeader({ hierarchy, selected }: Pick - + {t("customerPortal.entities.organizations")}