Save current app progress
This commit is contained in:
@@ -176,7 +176,15 @@ export default function HomeScreen({ navigation }: Props) {
|
||||
{loading ? (
|
||||
<ActivityIndicator size="large" color={colors.primary} style={{ marginTop: 40 }} />
|
||||
) : trips.length > 0 ? (
|
||||
trips.map(trip => <TripCard key={trip.id} trip={trip} />)
|
||||
trips.map(trip => (
|
||||
<TouchableOpacity
|
||||
key={trip.id}
|
||||
activeOpacity={0.9}
|
||||
onPress={() => navigation.navigate('TripDetails', { trip })}
|
||||
>
|
||||
<TripCard trip={trip} />
|
||||
</TouchableOpacity>
|
||||
))
|
||||
) : (
|
||||
<View style={styles.promptCard}>
|
||||
<Text style={styles.promptTitle}>Pronto para a próxima?</Text>
|
||||
|
||||
Reference in New Issue
Block a user