Skip to content

Commit

Permalink
chore: merge pull request PapillonApp#139 from Vilerio/courscancel
Browse files Browse the repository at this point in the history
feat: cours annulé en rouge
  • Loading branch information
Vexcited authored Sep 5, 2024
2 parents 013a907 + ad1ccd1 commit 0700a40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/views/account/Lessons/Atoms/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ export const TimetableItem: React.FC<{
>
<View style={[{ flex: 1, flexDirection: "column", overflow: "hidden", borderRadius: 10 }]}>
{item.status && (
<View style={[styles.statusContainer, { backgroundColor: subjectData.color + "33" }]}>
<Text style={[styles.statusText, { color: subjectData.color }]}>{item.status}</Text>
<View style={[styles.statusContainer, { backgroundColor: item.status === "Cours annulé" ? "#E8BEBF" : subjectData.color + "33" }]}>
<Text style={[styles.statusText, { color: item.status === "Cours annulé" ? "#B42828" : subjectData.color}]}>{item.status}</Text>
</View>
)}

<View style={[{ flex: 1, flexDirection: "row", padding: 10 }]}>
<View style={styles.colorIndicator}>
<ColorIndicator color={subjectData.color} />
Expand Down Expand Up @@ -171,4 +172,4 @@ const styles = StyleSheet.create({
fontSize: 14.5,
fontFamily: "semibold",
},
});
});

0 comments on commit 0700a40

Please sign in to comment.