diff options
Diffstat (limited to 'client/src/lib/views')
| -rw-r--r-- | client/src/lib/views/contact.js | 1 | ||||
| -rw-r--r-- | client/src/lib/views/home.js | 2 | ||||
| -rw-r--r-- | client/src/lib/views/livestream.js | 33 | ||||
| -rw-r--r-- | client/src/lib/views/nav.js | 2 |
4 files changed, 2 insertions, 36 deletions
diff --git a/client/src/lib/views/contact.js b/client/src/lib/views/contact.js index 6c45b2f..366b5c0 100644 --- a/client/src/lib/views/contact.js +++ b/client/src/lib/views/contact.js @@ -101,7 +101,6 @@ export default class Contact extends Component { {this.props.content.body} </ClearText> - {this.renderForm()} {this.renderComments()} </View> diff --git a/client/src/lib/views/home.js b/client/src/lib/views/home.js index 2e7979e..ed3c9b9 100644 --- a/client/src/lib/views/home.js +++ b/client/src/lib/views/home.js @@ -15,7 +15,7 @@ const sections = [ '/drones', '/livestream', '/information', - '/contact' + '/page/credits' ] const labels = [ 'SURVEILLANCE', 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> diff --git a/client/src/lib/views/nav.js b/client/src/lib/views/nav.js index 3e852cf..fd6530a 100644 --- a/client/src/lib/views/nav.js +++ b/client/src/lib/views/nav.js @@ -16,7 +16,7 @@ const sections = [ '/drones', '/livestream', '/information', - '/contact' + '/page/credits' ] const images = [ require('../../img/nav/sidebar/home.png'), |
