mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
style: run prettier on the usage persistence + date picker changes
This commit is contained in:
parent
547c5397ca
commit
506b068527
2 changed files with 9 additions and 2 deletions
|
|
@ -387,7 +387,10 @@ const UsagePage: React.FC<UsagePageProps> = ({ 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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue