Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(create-group-flow): remove ability to create social channel group #2245

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading