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) => {
};
const EventDetailCard = props => (
<TouchableOpacity
onPress={() => props.loadEvent(props.event.pk, props.token)}
>
<View style={styles.card}>
<Text style={styles.eventTitle}>{props.event.title}</Text>
{getInfo(props.event)}
......@@ -65,6 +68,7 @@ const EventDetailCard = props => (
)
}
</View>
</TouchableOpacity>
);
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