Skip to content

Commit

Permalink
refactor(create-group-flow): remove ability to create social channel …
Browse files Browse the repository at this point in the history
…group
  • Loading branch information
domw30 committed Sep 5, 2024
1 parent 937ad61 commit 612f765
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ export class GroupTypeDialog extends React.Component<Properties> {
Super Groups are designed to accommodate larger communities and are not encrypted by default. Check this box
if you are creating a room intended for larger groups (10+ people).
</p>

<h3 {...cn('section-header')}>Social Channel</h3>
<p {...cn('section-content')}>
Social Channels are designed for an interactive social experience with a feed, posts, and live chat. Check
this box for rooms where communities can share updates and chat in one space.
</p>
</div>

<div {...cn('footer')}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ describe(GroupTypeMenu, () => {
expect(onSelect).toHaveBeenCalledOnce();
});

it('publishes onSelect event when social channel is selected', () => {
const onSelect = jest.fn();
const wrapper = subject({ onSelect });

selectInputItem(wrapper, SelectInput, 'social-channel');

expect(onSelect).toHaveBeenCalledWith(GroupType.SOCIAL);
expect(onSelect).toHaveBeenCalledOnce();
});

it('publishes onOpen event when icon button is clicked', () => {
const onOpen = jest.fn();
const wrapper = subject({ onOpen });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';

import { IconInfoCircle, IconLock1, IconMonitor2, IconUsers1 } from '@zero-tech/zui/icons';
import { featureFlags } from '../../../../../lib/feature-flags';
import { IconInfoCircle, IconLock1, IconUsers1 } from '@zero-tech/zui/icons';
import { IconButton, SelectInput } from '@zero-tech/zui/components';
import { GroupType } from '..';

Expand Down Expand Up @@ -59,13 +58,6 @@ export class GroupTypeMenu extends React.Component<Properties, State> {
onSelect: () => this.selectType(GroupType.SUPER),
});

featureFlags.enableChannels &&
menuItems.push({
id: 'social-channel',
label: this.renderMenuItem(<IconMonitor2 size={20} />, 'Social Channel'),
onSelect: () => this.selectType(GroupType.SOCIAL),
});

return menuItems;
}

Expand All @@ -75,8 +67,6 @@ export class GroupTypeMenu extends React.Component<Properties, State> {
return 'Encrypted Group';
case GroupType.SUPER:
return 'Super Group';
case GroupType.SOCIAL:
return 'Social Channel';
default:
return '';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ interface State {
export enum GroupType {
ENCRYPTED = 'encrypted',
SUPER = 'super',
SOCIAL = 'social',
}

export class GroupDetailsPanel extends React.Component<Properties, State> {
Expand Down

0 comments on commit 612f765

Please sign in to comment.