CANCERYS\kw093 1 месяц назад
Родитель
Сommit
ffad6d2f5d
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      src/app/(main)/chart/_components/constants.ts

+ 1
- 1
src/app/(main)/chart/_components/constants.ts Просмотреть файл

@@ -3,7 +3,7 @@ import dayjs from "dayjs";
export const RANGE_DAYS = [7, 30, 90] as const;
export const TOP_ITEMS_LIMIT_OPTIONS = [10, 20, 50, 100] as const;
export const ITEM_CODE_DEBOUNCE_MS = 400;
export const DEFAULT_RANGE_DAYS = 30;
export const DEFAULT_RANGE_DAYS = 7;

export function toDateRange(rangeDays: number) {
const end = dayjs().format("YYYY-MM-DD");


Загрузка…
Отмена
Сохранить