Skip to content

Commit 5396675

Browse files
author
GitHub Ace
committed
feat: add 1 year duration option to filter
1 parent b28571c commit 5396675

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/App.tsx

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

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

2626
const DURATION_OPTIONS: { value: Duration; label: string; days: number }[] = [
2727
{ value: '2w', label: '2 weeks', days: 14 },
2828
{ value: '1', label: '1 month', days: 30 },
2929
{ value: '3', label: '3 months', days: 90 },
3030
{ value: '6', label: '6 months', days: 180 },
31+
{ value: '12', label: '1 year', days: 365 },
3132
]
3233

3334
function App() {

0 commit comments

Comments
 (0)