diff --git a/frontends/shared/ui/DateRangePicker.tsx b/frontends/shared/ui/DateRangePicker.tsx index 20e92ca92..03c56a991 100644 --- a/frontends/shared/ui/DateRangePicker.tsx +++ b/frontends/shared/ui/DateRangePicker.tsx @@ -18,6 +18,7 @@ import { subMinutes, subHours, subDays, + subMonths, } from "date-fns"; import { differenceInMinutes } from "date-fns/fp"; @@ -296,6 +297,17 @@ const defaultDatePresets: DatePreset[] = [ }, granularity: "day", }, + { + id: 8, + label: "Last Month", + range: { + gt: undefined, + lt: undefined, + lte: undefined, + gte: subMonths(new Date(), 1), + }, + granularity: "day", + }, { id: 9, label: "All Time",