This commit is contained in:
@@ -274,6 +274,21 @@ export default function OrderTrackingScreen() {
|
||||
gap: spacing.s,
|
||||
marginTop: spacing.l,
|
||||
},
|
||||
confirmBanner: {
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
gap: spacing.s,
|
||||
backgroundColor: colors.success,
|
||||
borderRadius: borderRadius.md,
|
||||
paddingVertical: spacing.m,
|
||||
marginTop: spacing.m,
|
||||
},
|
||||
confirmBannerText: {
|
||||
color: "#fff",
|
||||
fontWeight: "700",
|
||||
fontSize: fontSize.sm,
|
||||
},
|
||||
proposalBox: {
|
||||
backgroundColor: colors.warning + "18",
|
||||
borderWidth: 1,
|
||||
@@ -466,6 +481,16 @@ export default function OrderTrackingScreen() {
|
||||
color={colors.textMuted}
|
||||
/>
|
||||
</View>
|
||||
{canConfirm && (
|
||||
<TouchableOpacity
|
||||
activeOpacity={0.85}
|
||||
onPress={() => setConfirmingId(order.id)}
|
||||
style={styles.confirmBanner}
|
||||
>
|
||||
<Ionicons name="checkmark-circle-outline" size={18} color="#fff" />
|
||||
<Text style={styles.confirmBannerText}>Valider la réception</Text>
|
||||
</TouchableOpacity>
|
||||
)}
|
||||
{order.address_proposal_status === "pending" &&
|
||||
order.proposed_address && (
|
||||
<View style={styles.proposalBox}>
|
||||
@@ -602,18 +627,6 @@ export default function OrderTrackingScreen() {
|
||||
variant="outline"
|
||||
size="sm"
|
||||
/>
|
||||
{canConfirm && (
|
||||
<Button
|
||||
title="Confirmer reception"
|
||||
onPress={() =>
|
||||
setConfirmingId(
|
||||
order.id,
|
||||
)
|
||||
}
|
||||
variant="success"
|
||||
size="sm"
|
||||
/>
|
||||
)}
|
||||
{canCancel && (
|
||||
<Button
|
||||
title="Annuler"
|
||||
|
||||
Reference in New Issue
Block a user