mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
Fixing build
This commit is contained in:
parent
19504adb9d
commit
5d01f14f94
2 changed files with 8 additions and 8 deletions
|
|
@ -25,12 +25,14 @@ vi.mock("@tremor/react", () => ({
|
|||
|
||||
vi.mock("antd", () => {
|
||||
const CollapseComponent = ({ children }: { children: React.ReactNode }) => <div>{children}</div>;
|
||||
CollapseComponent.Panel = ({ children, header }: { children: React.ReactNode; header: React.ReactNode }) => (
|
||||
const PanelComponent = ({ children, header }: { children: React.ReactNode; header: React.ReactNode }) => (
|
||||
<div>
|
||||
<div>{header}</div>
|
||||
<div>{children}</div>
|
||||
</div>
|
||||
);
|
||||
PanelComponent.displayName = "Collapse.Panel";
|
||||
CollapseComponent.Panel = PanelComponent;
|
||||
return {
|
||||
Collapse: CollapseComponent,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
import React from "react";
|
||||
import { Card, Grid, Text, Title } from "@tremor/react";
|
||||
import { AreaChart, BarChart } from "@tremor/react";
|
||||
import { DailyData, ModelActivityData, KeyMetricWithMetadata, TopApiKeyData } from "./UsagePage/types";
|
||||
import { Collapse } from "antd";
|
||||
import { formatNumberWithCommas } from "@/utils/dataUtils";
|
||||
import { AreaChart, BarChart, Card, Grid, Text, Title } from "@tremor/react";
|
||||
import { Collapse } from "antd";
|
||||
import React from "react";
|
||||
import { CustomLegend, CustomTooltip } from "./common_components/chartUtils";
|
||||
import { DailyData, KeyMetricWithMetadata, ModelActivityData, TopApiKeyData } from "./UsagePage/types";
|
||||
import { valueFormatter } from "./UsagePage/utils/value_formatters";
|
||||
import { CustomTooltip, CustomLegend } from "./common_components/chartUtils";
|
||||
import { EntityType } from "./EntityUsageExport/types";
|
||||
|
||||
interface ActivityMetricsProps {
|
||||
modelMetrics: Record<string, ModelActivityData>;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue