Skip to content

Commit

Permalink
feat: added group channel type selector
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Oct 14, 2022
1 parent 955f7ad commit 9fb7a19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export interface GroupChannelListProps {
channel: SendbirdGroupChannel,
onLongPressChannel: () => void,
) => React.ReactElement | null;
// /** Skip type selection, When this is set to true 'channelType' only receive 'GROUP' type **/
// skipTypeSelection?: boolean;
/** Skip type selection, When this is set to true 'channelType' only receive 'GROUP' type **/
skipTypeSelection?: boolean;
/** Custom Query creator for channels query **/
queryCreator?: UseGroupChannelListOptions['queryCreator'];
/** Custom Collection creator for group channel collection **/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const createGroupChannelListFragment = (initModule?: Partial<GroupChannelListMod
queryCreator,
collectionCreator,
renderGroupChannelPreview,
// skipTypeSelection = true,
skipTypeSelection = false,
flatListProps = {},
menuItemCreator = PASS,
}) => {
Expand Down Expand Up @@ -78,8 +78,7 @@ const createGroupChannelListFragment = (initModule?: Partial<GroupChannelListMod
/>
</StatusComposition>
<GroupChannelListModule.TypeSelector
// NOTE: not included in first iteration
skipTypeSelection
skipTypeSelection={skipTypeSelection}
Header={TypeSelectorHeader}
onSelectType={onPressCreateChannel}
/>
Expand Down

0 comments on commit 9fb7a19

Please sign in to comment.