summaryrefslogtreecommitdiff
path: root/client/src/lib/views
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-03 21:32:32 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-03 21:32:32 +0100
commit463f04f38459250609291e8cf6554cc1dc066029 (patch)
tree04cd9cf25404160715359b57691f6a7529fb5458 /client/src/lib/views
parent6300cbad1513e67400389b20d5c588d940737cab (diff)
disable livestreams
Diffstat (limited to 'client/src/lib/views')
-rw-r--r--client/src/lib/views/contact.js1
-rw-r--r--client/src/lib/views/home.js2
-rw-r--r--client/src/lib/views/livestream.js33
-rw-r--r--client/src/lib/views/nav.js2
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'),