Add ability to search my Groups
This commit is contained in:
parent
5a6a6f63d2
commit
6da45c3ef7
4 changed files with 4 additions and 4 deletions
|
@ -5,9 +5,8 @@ import { useHistory } from 'react-router-dom';
|
||||||
import { openModal } from 'soapbox/actions/modals';
|
import { openModal } from 'soapbox/actions/modals';
|
||||||
import List, { ListItem } from 'soapbox/components/list';
|
import List, { ListItem } from 'soapbox/components/list';
|
||||||
import { CardBody, CardHeader, CardTitle, Column, Spinner, Text } from 'soapbox/components/ui';
|
import { CardBody, CardHeader, CardTitle, Column, Spinner, Text } from 'soapbox/components/ui';
|
||||||
import { useAppDispatch, useGroupsPath } from 'soapbox/hooks';
|
import { useAppDispatch, useBackend, useGroupsPath } from 'soapbox/hooks';
|
||||||
import { useDeleteGroup, useGroup } from 'soapbox/hooks/api';
|
import { useDeleteGroup, useGroup } from 'soapbox/hooks/api';
|
||||||
import { useBackend } from 'soapbox/hooks/useBackend';
|
|
||||||
import { GroupRoles } from 'soapbox/schemas/group-member';
|
import { GroupRoles } from 'soapbox/schemas/group-member';
|
||||||
import toast from 'soapbox/toast';
|
import toast from 'soapbox/toast';
|
||||||
import { TRUTHSOCIAL } from 'soapbox/utils/features';
|
import { TRUTHSOCIAL } from 'soapbox/utils/features';
|
||||||
|
|
|
@ -53,7 +53,7 @@ describe('useGroupsPath()', () => {
|
||||||
describe('when the user has groups', () => {
|
describe('when the user has groups', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
__stub((mock) => {
|
__stub((mock) => {
|
||||||
mock.onGet('/api/v1/groups').reply(200, [
|
mock.onGet('/api/v1/groups?q=').reply(200, [
|
||||||
buildGroup({
|
buildGroup({
|
||||||
display_name: 'Group',
|
display_name: 'Group',
|
||||||
id: '1',
|
id: '1',
|
||||||
|
|
|
@ -11,8 +11,8 @@ export { useCancelMembershipRequest } from './groups/useCancelMembershipRequest'
|
||||||
export { useCreateGroup, type CreateGroupParams } from './groups/useCreateGroup';
|
export { useCreateGroup, type CreateGroupParams } from './groups/useCreateGroup';
|
||||||
export { useDeleteGroup } from './groups/useDeleteGroup';
|
export { useDeleteGroup } from './groups/useDeleteGroup';
|
||||||
export { useDemoteGroupMember } from './groups/useDemoteGroupMember';
|
export { useDemoteGroupMember } from './groups/useDemoteGroupMember';
|
||||||
export { useGroupMedia } from './groups/useGroupMedia';
|
|
||||||
export { useGroup, useGroups } from './groups/useGroups';
|
export { useGroup, useGroups } from './groups/useGroups';
|
||||||
|
export { useGroupMedia } from './groups/useGroupMedia';
|
||||||
export { useGroupMembershipRequests } from './groups/useGroupMembershipRequests';
|
export { useGroupMembershipRequests } from './groups/useGroupMembershipRequests';
|
||||||
export { useGroupSearch } from './groups/useGroupSearch';
|
export { useGroupSearch } from './groups/useGroupSearch';
|
||||||
export { useGroupTag } from './groups/useGroupTag';
|
export { useGroupTag } from './groups/useGroupTag';
|
||||||
|
|
|
@ -2,6 +2,7 @@ export { useAccount } from './useAccount';
|
||||||
export { useApi } from './useApi';
|
export { useApi } from './useApi';
|
||||||
export { useAppDispatch } from './useAppDispatch';
|
export { useAppDispatch } from './useAppDispatch';
|
||||||
export { useAppSelector } from './useAppSelector';
|
export { useAppSelector } from './useAppSelector';
|
||||||
|
export { useBackend } from './useBackend';
|
||||||
export { useClickOutside } from './useClickOutside';
|
export { useClickOutside } from './useClickOutside';
|
||||||
export { useCompose } from './useCompose';
|
export { useCompose } from './useCompose';
|
||||||
export { useDebounce } from './useDebounce';
|
export { useDebounce } from './useDebounce';
|
||||||
|
|
Loading…
Reference in a new issue