fix(app): filters toggle layout, constant spacing, one active-count helper
This commit is contained in:
1 parent
c25a994c0e
commit
7a129dc763
3 files changed
+25
-8
No files matched your search
@@ -44,3 +44,8 @@ export function filterSheets(
|
||||
sheet.latest_round?.status === filters.roundStatus),
|
||||
)
|
||||
}
|
||||
|
||||
/** How many of the four filters are not empty. */
|
||||
export function activeFilterCount(filters: SheetFilters): number {
|
||||
return Object.values(filters).filter(Boolean).length
|
||||
}
|
||||
Reference in new issue
Block a user