Components

TeamBlock

<TeamBlock />

Constructor

# <TeamBlock />

This is the block in the stream creations in charge of selecting friends
Properties:
Name Type Description
maxGroups Number maximum amount of groups to allow
friends Array.<friendsData> the users friends
streamGroups Array.<streamGroup> the currently selected groups of streamers
setStreamGroups function setter for stream groups

View Source frontend/siinc-tv/src/components/streamCreation/teamBlock.js, line 120

Methods

# inner addGroup()

adds a new group, if the number of groups exceeds 4 it does not allow to add a new group

View Source frontend/siinc-tv/src/components/streamCreation/teamBlock.js, line 131

# inner deleteGroup(key)

deletes a group in certain index
Parameters:
Name Type Description
key * the key of the group

View Source frontend/siinc-tv/src/components/streamCreation/teamBlock.js, line 147