Commit 69c314b
authored
Enhancement - collection tagfilters first (#973)
* make 'others' a const
* extract into consts
* extract into getYearFilters
* extract getCategoryFilters
* add correct types
* extract getTagFilters
* rename to singular
* move logic into each get*Filter function to improve readability
* fix import
* remove type renaming during import
* refactor imports location
* refactor: standardize code structure
* only return filters with at least 2 items
* add storybook
* reorder collection filters to put "tags" first
* do not render "category" if there's no category filter
* remove shouldShowCategory
* resolve merge
* resolve merge1 parent ec7e344 commit 69c314b
File tree
1 file changed
+2
-1
lines changed- packages/components/src/templates/next/layouts/Collection/utils
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
14 | 15 | | |
15 | 16 | | |
0 commit comments