mirror of
https://github.com/outline/outline.git
synced 2026-12-05 10:45:07 +03:00
fix: Short search filter on Group settings (#11945)
This commit is contained in:
1 parent
c4930f315c
commit
d2f94f54ed
1 file changed
+10
-13
@@ -26,7 +26,6 @@ import { CreateGroupDialog } from "./components/GroupDialogs";
|
||||
import GroupSourceFilter from "./components/GroupSourceFilter";
|
||||
import { GroupsTable } from "./components/GroupsTable";
|
||||
import { StickyFilters } from "./components/StickyFilters";
|
||||
import { HStack } from "~/components/primitives/HStack";
|
||||
|
||||
function getFilteredGroups(groups: Group[], query?: string, source?: string) {
|
||||
let filtered = groups;
|
||||
@@ -171,18 +170,16 @@ function Groups() {
|
||||
) : (
|
||||
<>
|
||||
<StickyFilters>
|
||||
<HStack>
|
||||
<InputSearch
|
||||
short
|
||||
value={query}
|
||||
placeholder={`${t("Filter")}…`}
|
||||
onChange={handleSearch}
|
||||
/>
|
||||
<LargeGroupSourceFilter
|
||||
activeKey={reqParams.source ?? ""}
|
||||
onSelect={handleSourceFilter}
|
||||
/>
|
||||
</HStack>
|
||||
<InputSearch
|
||||
short
|
||||
value={query}
|
||||
placeholder={`${t("Filter")}…`}
|
||||
onChange={handleSearch}
|
||||
/>
|
||||
<LargeGroupSourceFilter
|
||||
activeKey={reqParams.source ?? ""}
|
||||
onSelect={handleSourceFilter}
|
||||
/>
|
||||
</StickyFilters>
|
||||
<ConditionalFade animate={!data}>
|
||||
<GroupsTable
|
||||
|
||||
Reference in new issue
Block a user