Commit 7166c451 authored by Jen Dusseljee's avatar Jen Dusseljee
Browse files

Made event cards tappable

parent 01bc7787
...@@ -33,6 +33,9 @@ const getInfo = (event) => { ...@@ -33,6 +33,9 @@ const getInfo = (event) => {
}; };
const EventDetailCard = props => ( const EventDetailCard = props => (
<TouchableOpacity
onPress={() => props.loadEvent(props.event.pk, props.token)}
>
<View style={styles.card}> <View style={styles.card}>
<Text style={styles.eventTitle}>{props.event.title}</Text> <Text style={styles.eventTitle}>{props.event.title}</Text>
{getInfo(props.event)} {getInfo(props.event)}
...@@ -65,6 +68,7 @@ const EventDetailCard = props => ( ...@@ -65,6 +68,7 @@ const EventDetailCard = props => (
) )
} }
</View> </View>
</TouchableOpacity>
); );
EventDetailCard.propTypes = { EventDetailCard.propTypes = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment