This commit is contained in:
Tom Moor
2023-03-09 22:27:40 -05:00
parent e786888dfb
commit af0485fa12
5 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import { subDays, subMonths, subWeeks, subYears } from "date-fns";
import { DateFilter } from "@shared/types";
import type { DateFilter } from "../types";
export function subtractDate(date: Date, period: DateFilter) {
switch (period) {