Commit c8324af0 authored by Jen Dusseljee's avatar Jen Dusseljee
Browse files

fixed indentations

parent 7166c451
......@@ -35,39 +35,38 @@ const getInfo = (event) => {
const EventDetailCard = props => (
<TouchableOpacity
onPress={() => props.loadEvent(props.event.pk, props.token)}
style={styles.card}
>
<View style={styles.card}>
<Text style={styles.eventTitle}>{props.event.title}</Text>
{getInfo(props.event)}
<Text
numberOfLines={2}
style={styles.description}
>{props.event.description}</Text>
<View style={styles.buttonList}>
<Text style={styles.eventTitle}>{props.event.title}</Text>
{getInfo(props.event)}
<Text
numberOfLines={2}
style={styles.description}
>{props.event.description}</Text>
<View style={styles.buttonList}>
<TouchableOpacity
onPress={() => props.loadEvent(props.event.pk, props.token)}
style={styles.button}
>
<Text style={styles.moreInfo}>MEER INFO</Text>
</TouchableOpacity>
{props.event.pizza ? (
<TouchableOpacity
onPress={() => props.loadEvent(props.event.pk, props.token)}
onPress={() => props.retrievePizzaInfo(props.token)}
style={styles.button}
>
<Text style={styles.moreInfo}>MEER INFO</Text>
<Text style={styles.orderPizza}>PIZZA</Text>
</TouchableOpacity>
{props.event.pizza ? (
<TouchableOpacity
onPress={() => props.retrievePizzaInfo(props.token)}
style={styles.button}
>
<Text style={styles.orderPizza}>PIZZA</Text>
</TouchableOpacity>
) : null}
</View>
{props.event.registered === null ? null : (
<View
style={[
styles.indicator,
props.event.registered ? styles.registered : styles.unregistered]}
/>
)
}
) : null}
</View>
{props.event.registered === null ? null : (
<View
style={[
styles.indicator,
props.event.registered ? styles.registered : styles.unregistered]}
/>
)
}
</TouchableOpacity>
);
......
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