fix
This commit is contained in:
@@ -443,6 +443,11 @@ export default function OrdersScreen() {
|
||||
color: colors.textSecondary,
|
||||
fontSize: fontSize.xs,
|
||||
},
|
||||
livreurCancelBadge: {
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
marginBottom: spacing.xs,
|
||||
},
|
||||
proposedAddressBox: {
|
||||
backgroundColor: colors.bgPrimary,
|
||||
borderRadius: borderRadius.sm,
|
||||
@@ -662,8 +667,18 @@ export default function OrdersScreen() {
|
||||
{/* Raison annulation */}
|
||||
{isCancelled && !!item.cancel_reason && (
|
||||
<View style={styles.cancelReasonBox}>
|
||||
{item.cancel_reason.startsWith("[Livreur:") && (
|
||||
<View style={styles.livreurCancelBadge}>
|
||||
<Ionicons name="bicycle-outline" size={12} color={colors.danger} />
|
||||
<Text style={[styles.cancelReasonText, { color: colors.danger, fontWeight: "600" }]}>
|
||||
{" "}Annulé par le livreur
|
||||
</Text>
|
||||
</View>
|
||||
)}
|
||||
<Text style={styles.cancelReasonText}>
|
||||
Raison : {item.cancel_reason}
|
||||
{item.cancel_reason.startsWith("[Livreur:")
|
||||
? item.cancel_reason.replace(/^\[Livreur: [^\]]+\] /, "")
|
||||
: item.cancel_reason}
|
||||
</Text>
|
||||
</View>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user