diff --git a/ui/litellm-dashboard/.eslintrc.json b/ui/litellm-dashboard/.eslintrc.json index ca186e8bded..c76c89a6176 100644 --- a/ui/litellm-dashboard/.eslintrc.json +++ b/ui/litellm-dashboard/.eslintrc.json @@ -40,7 +40,9 @@ "src/components/model_hub_table_columns.tsx", "src/components/mcp_server_management/MCPServerSelector.tsx", "src/components/mcp_tools/MCPNetworkSettings.tsx", - "src/components/mcp_tools/ByokCredentialModal.tsx" + "src/components/mcp_tools/ByokCredentialModal.tsx", + "src/components/shared/usage_date_picker.tsx", + "src/components/shared/advanced_date_picker.tsx" ], "rules": { "litellm-ui/no-banned-ui-imports": "off", diff --git a/ui/litellm-dashboard/src/components/shared/CreatedKeyDisplay.tsx b/ui/litellm-dashboard/src/components/shared/CreatedKeyDisplay.tsx index 00ffb8c6e20..7a9c32312f2 100644 --- a/ui/litellm-dashboard/src/components/shared/CreatedKeyDisplay.tsx +++ b/ui/litellm-dashboard/src/components/shared/CreatedKeyDisplay.tsx @@ -1,6 +1,6 @@ import React, { useState } from "react"; import { CopyToClipboard } from "react-copy-to-clipboard"; -import { Button } from "antd"; +import { Button } from "@/components/ui/button"; import MessageManager from "@/components/molecules/message_manager"; interface CreatedKeyDisplayProps { @@ -23,27 +23,21 @@ const CreatedKeyDisplay: React.FC = ({ apiKey }) => { return (

- Please save this secret key somewhere safe and accessible. For security reasons,{" "} - you will not be able to view it again through your LiteLLM account. If you - lose this secret key, you will need to generate a new one. + Please save this secret key somewhere safe and accessible. For security + reasons, you will not be able to view it again through your + LiteLLM account. If you lose this secret key, you will need to generate + a new one.

-

Virtual Key:

-
-
+      

Virtual Key:

+
+
           {apiKey}
         
- diff --git a/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx b/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx index 4293657b71a..8aac45b33e5 100644 --- a/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx +++ b/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx @@ -1,5 +1,6 @@ -import { CalendarOutlined, ClockCircleOutlined } from "@ant-design/icons"; -import { Button, DateRangePickerValue, Text } from "@tremor/react"; +import { Calendar as CalendarIcon, Clock } from "lucide-react"; +// eslint-disable-next-line litellm-ui/no-banned-ui-imports +import { Button, DateRangePickerValue } from "@tremor/react"; import moment from "moment"; import React, { useCallback, useEffect, useRef, useState } from "react"; @@ -274,7 +275,7 @@ const AdvancedDatePicker: React.FC = ({ return (
- {label && {label}} + {label && {label}}
{/* Main input display */}
= ({ >
- + {formatDisplayRange(value.from, value.to)}
= ({
- + Start and end dates
diff --git a/ui/litellm-dashboard/src/components/shared/usage_date_picker.tsx b/ui/litellm-dashboard/src/components/shared/usage_date_picker.tsx index 72ce5042647..52535df8818 100644 --- a/ui/litellm-dashboard/src/components/shared/usage_date_picker.tsx +++ b/ui/litellm-dashboard/src/components/shared/usage_date_picker.tsx @@ -1,5 +1,6 @@ import React, { useCallback, useState, useRef } from "react"; -import { DateRangePicker, DateRangePickerValue, Text } from "@tremor/react"; +// eslint-disable-next-line litellm-ui/no-banned-ui-imports +import { DateRangePicker, DateRangePickerValue } from "@tremor/react"; interface UsageDatePickerProps { value: DateRangePickerValue; @@ -110,7 +111,7 @@ const UsageDatePicker: React.FC = ({ return (
- {label && {label}} + {label &&

{label}

} {/* Container with relative positioning for absolute placement */}
@@ -147,7 +148,9 @@ const UsageDatePicker: React.FC = ({ {/* Time range display */} {showTimeRange && value.from && value.to && ( - {formatTimeRange(value.from, value.to)} +

+ {formatTimeRange(value.from, value.to)} +

)}
);