Skip to content

Commit

Permalink
feat(frontend): add 'Last 6 months' date range option
Browse files Browse the repository at this point in the history
closes #1249
  • Loading branch information
anupcowkur committed Sep 16, 2024
1 parent 26ec8c3 commit 98c546f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/dashboard/app/components/filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ enum DateRange {
Last15Days = 'Last 15 Days',
LastMonth = 'Last Month',
Last3Months = 'Last 3 Months',
Last6Months = 'Last 6 Months',
LastYear = 'Last Year',
Custom = 'Custom Range'
}
Expand Down Expand Up @@ -220,6 +221,9 @@ const Filters: React.FC<FiltersProps> = ({
case DateRange.Last3Months:
newDate = today.minus({ months: 3 })
break
case DateRange.Last6Months:
newDate = today.minus({ months: 6 })
break
case DateRange.LastYear:
newDate = today.minus({ years: 1 })
break
Expand Down

0 comments on commit 98c546f

Please sign in to comment.