Skip to content

Commit b28571c

Browse files
author
GitHub Ace
committed
feat: add 2-week duration option to filters
1 parent 6481c7c commit b28571c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ interface HNStory {
2121
descendants?: number
2222
}
2323

24-
type Duration = '1' | '3' | '6'
24+
type Duration = '2w' | '1' | '3' | '6'
2525

2626
const DURATION_OPTIONS: { value: Duration; label: string; days: number }[] = [
27+
{ value: '2w', label: '2 weeks', days: 14 },
2728
{ value: '1', label: '1 month', days: 30 },
2829
{ value: '3', label: '3 months', days: 90 },
2930
{ value: '6', label: '6 months', days: 180 },

0 commit comments

Comments
 (0)