diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-03 21:32:32 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-03 21:32:32 +0100 |
| commit | 463f04f38459250609291e8cf6554cc1dc066029 (patch) | |
| tree | 04cd9cf25404160715359b57691f6a7529fb5458 /client/src/lib/views/livestream.js | |
| parent | 6300cbad1513e67400389b20d5c588d940737cab (diff) | |
disable livestreams
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> |
