Skip to content

Commit 461f2c0

Browse files
committed
refactor: clean up GLOBAL_TAG and remove unused MY_LANGUAGES_TAG
1 parent f7cbe6b commit 461f2c0

1 file changed

Lines changed: 5 additions & 20 deletions

File tree

src/config/index.tsx

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,33 +24,18 @@ export const reportLink = 'https://www.hackertab.dev/report'
2424

2525
export const LS_PREFERENCES_KEY = 'hackerTabPrefs'
2626
export const GLOBAL_TAG = {
27-
value: 'global',
27+
value: '',
2828
label: 'Trending',
29-
githubValues: ['global'],
30-
devtoValues: ['programming'],
31-
hashnodeValues: ['programming'],
32-
mediumValues: ['programming'],
33-
redditValues: ['programming'],
34-
freecodecampValues: ['programming'],
35-
}
36-
export const MY_LANGUAGES_TAG = {
37-
value: 'myLangs',
38-
label: 'My Languages',
39-
githubValues: ['myLangs'],
40-
devtoValues: ['myLangs'],
41-
hashnodeValues: ['myLangs'],
42-
mediumValues: ['myLangs'],
43-
redditValues: ['myLangs'],
44-
freecodecampValues: ['myLangs'],
4529
}
30+
4631
export const MAX_ITEMS_PER_CARD = 50
4732

4833
export type DateRangeType = {
4934
value: 'daily' | 'monthly' | 'weekly'
5035
label: string
5136
}
5237
export const dateRanges: DateRangeType[] = [
53-
{ label: 'the day', value: 'daily' },
54-
{ label: 'the week', value: 'weekly' },
55-
{ label: 'the month', value: 'monthly' },
38+
{ label: 'Today', value: 'daily' },
39+
{ label: 'This week', value: 'weekly' },
40+
{ label: 'This month', value: 'monthly' },
5641
]

0 commit comments

Comments
 (0)