Merge branch 'remove-pending-requests' into 'develop'
Remove 'Pending requests' from Group Manage See merge request soapbox-pub/soapbox!2406
This commit is contained in:
commit
c045a6630d
1 changed files with 10 additions and 3 deletions
|
@ -7,8 +7,10 @@ import List, { ListItem } from 'soapbox/components/list';
|
|||
import { CardBody, CardHeader, CardTitle, Column, Spinner, Text } from 'soapbox/components/ui';
|
||||
import { useAppDispatch, useGroupsPath } from 'soapbox/hooks';
|
||||
import { useDeleteGroup, useGroup } from 'soapbox/hooks/api';
|
||||
import { useBackend } from 'soapbox/hooks/useBackend';
|
||||
import { GroupRoles } from 'soapbox/schemas/group-member';
|
||||
import toast from 'soapbox/toast';
|
||||
import { TRUTHSOCIAL } from 'soapbox/utils/features';
|
||||
|
||||
import ColumnForbidden from '../ui/components/column-forbidden';
|
||||
|
||||
|
@ -34,10 +36,12 @@ interface IManageGroup {
|
|||
|
||||
const ManageGroup: React.FC<IManageGroup> = ({ params }) => {
|
||||
const { id } = params;
|
||||
const intl = useIntl();
|
||||
const history = useHistory();
|
||||
|
||||
const backend = useBackend();
|
||||
const dispatch = useAppDispatch();
|
||||
const groupsPath = useGroupsPath();
|
||||
const history = useHistory();
|
||||
const intl = useIntl();
|
||||
|
||||
const { group } = useGroup(id);
|
||||
|
||||
|
@ -99,7 +103,10 @@ const ManageGroup: React.FC<IManageGroup> = ({ params }) => {
|
|||
</CardHeader>
|
||||
|
||||
<List>
|
||||
<ListItem label={intl.formatMessage(messages.pendingRequests)} onClick={navigateToPending} />
|
||||
{backend.software !== TRUTHSOCIAL && (
|
||||
<ListItem label={intl.formatMessage(messages.pendingRequests)} onClick={navigateToPending} />
|
||||
)}
|
||||
|
||||
<ListItem label={intl.formatMessage(messages.blockedMembers)} onClick={navigateToBlocks} />
|
||||
</List>
|
||||
|
||||
|
|
Loading…
Reference in a new issue