style: run prettier on the usage persistence + date picker changes

This commit is contained in:
spions 2026-08-07 17:52:54 +03:00
parent 547c5397ca
commit 506b068527
2 changed files with 9 additions and 2 deletions

View file

@ -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);
}

View file

@ -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;