feat: I can hide/show filter bar and add filters directly from filter bar (#1173)

* I can hide/show filter bar and add filters directly from filter bar

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Add requested changes

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Revert breaking changes

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
This commit is contained in:
gitstart-twenty
2023-08-15 10:12:11 +08:00
committed by GitHub
parent 239d036813
commit 656f1af15c
8 changed files with 129 additions and 44 deletions

View File

@ -78,12 +78,15 @@ export function TableHeader<SortField>({
<FilterDropdownButton
context={TableRecoilScopeContext}
HotkeyScope={FiltersHotkeyScope.FilterDropdownButton}
isPrimaryButton
/>
<SortDropdownButton<SortField>
context={TableContext}
isSortSelected={sorts.length > 0}
availableSorts={availableSorts || []}
onSortSelect={sortSelect}
HotkeyScope={FiltersHotkeyScope.FilterDropdownButton}
isPrimaryButton
/>
<TableOptionsDropdownButton
onColumnsChange={onColumnsChange}
@ -99,6 +102,7 @@ export function TableHeader<SortField>({
onCancelClick={() => {
handleSortsUpdate([]);
}}
hasFilterButton
/>
}
/>