From 506b068527776f2379aa654ba1e64c88549cf3d1 Mon Sep 17 00:00:00 2001 From: spions Date: Fri, 7 Aug 2026 17:52:54 +0300 Subject: [PATCH] style: run prettier on the usage persistence + date picker changes --- .../usage/_components/components/UsagePageView.tsx | 5 ++++- .../src/components/shared/advanced_date_picker.tsx | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ui/litellm-dashboard/src/app/(dashboard)/usage/_components/components/UsagePageView.tsx b/ui/litellm-dashboard/src/app/(dashboard)/usage/_components/components/UsagePageView.tsx index 1e40e374c3e..62daf9143d6 100644 --- a/ui/litellm-dashboard/src/app/(dashboard)/usage/_components/components/UsagePageView.tsx +++ b/ui/litellm-dashboard/src/app/(dashboard)/usage/_components/components/UsagePageView.tsx @@ -387,7 +387,10 @@ const UsagePage: React.FC = ({ teams, organizations }) => { if (!presetLabel) return; const freshRange = getRelativeRangeByShortLabel(presetLabel); if (!freshRange) return; - if (freshRange.from.getTime() !== dateValue.from?.getTime() || freshRange.to.getTime() !== dateValue.to?.getTime()) { + if ( + freshRange.from.getTime() !== dateValue.from?.getTime() || + freshRange.to.getTime() !== dateValue.to?.getTime() + ) { setDateValue(freshRange); persistDateRange(freshRange); } 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 4e83eeddbfe..9025c261c6f 100644 --- a/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx +++ b/ui/litellm-dashboard/src/components/shared/advanced_date_picker.tsx @@ -2,7 +2,11 @@ import { CalendarOutlined, ClockCircleOutlined } from "@ant-design/icons"; import { Button, DateRangePickerValue, Text } from "@tremor/react"; import moment from "moment"; import React, { useCallback, useEffect, useRef, useState } from "react"; -import { getMatchingRelativeOption, RelativeTimeOption, relativeTimeOptions } from "@/components/shared/date_range_presets"; +import { + getMatchingRelativeOption, + RelativeTimeOption, + relativeTimeOptions, +} from "@/components/shared/date_range_presets"; interface AdvancedDatePickerProps { value: DateRangePickerValue;