Skip to content

Commit 7805f14

Browse files
committed
use string lits
1 parent c650b91 commit 7805f14

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

apps/web/src/components/time-range.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@ import { cn } from '@/lib/utils'
33
import { DateRange } from 'react-day-picker'
44
import { DateRangePicker } from '@/components/ui/date-range-picker'
55

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]
6+
export type TimeRange = 'hourly' | 'daily' | 'weekly' | 'monthly';
137

148
interface TimeRangeProps {
159
timeRange: TimeRange

0 commit comments

Comments
 (0)