We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c650b91 commit 7805f14Copy full SHA for 7805f14
apps/web/src/components/time-range.tsx
@@ -3,13 +3,7 @@ import { cn } from '@/lib/utils'
3
import { DateRange } from 'react-day-picker'
4
import { DateRangePicker } from '@/components/ui/date-range-picker'
5
6
-const timeRanges = {
7
- hourly: 'hourly',
8
- daily: 'daily',
9
- weekly: 'weekly',
10
- monthly: 'monthly',
11
-} as const;
12
-export type TimeRange = typeof timeRanges[keyof typeof timeRanges]
+export type TimeRange = 'hourly' | 'daily' | 'weekly' | 'monthly';
13
14
interface TimeRangeProps {
15
timeRange: TimeRange
0 commit comments