Pénalité lorsqu'on échoue un défi

This commit is contained in:
2024-12-13 00:02:58 +01:00
parent 63ad84eb8c
commit 4cb2677f45
6 changed files with 34 additions and 9 deletions

View File

@ -29,7 +29,7 @@ export default function ChallengeCard({ challenge, onSuccess, onFail, onDelete,
</View>
<View style={{ flexWrap: 'wrap', flexDirection: 'row', justifyContent: 'space-around', padding: 15 }}>
{onFail && <Button key='failBtn' mode='outlined' icon='cancel' onPress={() => onFail()}>
Passer
Échouer
</Button>}
{onSuccess && <Button key='successBtn' mode='contained' icon='check' onPress={() => onSuccess()}>
Terminer