chore: add options for alerts

This commit is contained in:
2026-03-08 18:59:52 +01:00
parent 8d63ecd496
commit 70b1f26425
5 changed files with 104 additions and 4 deletions
@@ -44,6 +44,12 @@ export default function AlertsScreen() {
fontSize: fontSize.md,
fontWeight: "600",
},
alertMessage: {
color: colors.danger,
fontSize: fontSize.sm,
fontWeight: "600",
marginTop: 2,
},
date: {
color: colors.textMuted,
fontSize: fontSize.xs,
@@ -75,6 +81,9 @@ export default function AlertsScreen() {
<Text style={styles.username}>
Livreur: {item.username}
</Text>
{item.message ? (
<Text style={styles.alertMessage}>{item.message}</Text>
) : null}
<Text style={styles.date}>
{new Date(item.created_at).toLocaleString("fr-FR")}
</Text>