diff --git a/src/pages/catchup.jsx b/src/pages/catchup.jsx index ae76d28e..72081c0d 100644 --- a/src/pages/catchup.jsx +++ b/src/pages/catchup.jsx @@ -61,6 +61,22 @@ const RANGES = [ { label: 'beyond 12 hours', value: 13 }, ]; +const FILTER_LABELS = [ + 'Original', + 'Replies', + 'Boosts', + 'Followed tags', + 'Groups', + 'Filtered', +]; +const FILTER_SORTS = [ + 'createdAt', + 'repliesCount', + 'favouritesCount', + 'reblogsCount', + 'density', +]; +const FILTER_GROUPS = [null, 'account']; const FILTER_VALUES = { Filtered: 'filtered', Groups: 'group', @@ -1040,14 +1056,7 @@ function Catchup() { /> All {posts.length} - {[ - 'Original', - 'Replies', - 'Boosts', - 'Followed tags', - 'Groups', - 'Filtered', - ].map( + {FILTER_LABELS.map( (label) => !!filterCounts[label] && (