diff options
Diffstat (limited to 'client/src/lib/views/livestream.js')
| -rw-r--r-- | client/src/lib/views/livestream.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/client/src/lib/views/livestream.js b/client/src/lib/views/livestream.js index 5df52aa..34a6d2d 100644 --- a/client/src/lib/views/livestream.js +++ b/client/src/lib/views/livestream.js @@ -23,41 +23,8 @@ export default class Livestream extends Component { } } render() { - const buttons = this.props.content.streams.map( (stream, i) => { - const ytid = getYTID(stream.uri || "") - if (! ytid) return null - let buttonStyle, textStyle - if (ytid === this.state.ytid) { - buttonStyle = styles.activeButton - textStyle = styles.activeButtonText - } - return ( - <Button - key={'button_' + i} - buttonStyle={buttonStyle} - textStyle={textStyle} - label={stream.text} - onPress={() => { - this.setState({ ytid }) - }} - /> - ) - }).filter(button => !!button) - const first_buttons = buttons.slice(0, 3) - const second_buttons = buttons.slice(3) - return ( <ScrollableContainer heading='Livestream' bodyStyle={styles.bodyStyle}> - <View style={styles.videoContainer} className='videoContainer'> - <Youtube ytid={this.state.ytid} /> - <View style={styles.overlay}></View> - </View> - <View style={styles.buttons}> - {first_buttons} - </View> - <View style={styles.buttons}> - {second_buttons} - </View> <View style={styles.contentContainer}> <ClearText style={styles.body}>{this.props.content.body}</ClearText> </View> |
