From d28dbf9fb0e2e8b435425aa0b48660db21805c5d Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sun, 21 Jun 2026 18:48:30 +0200 Subject: [PATCH] chore: build --- .../src/screens/client/OrderHistoryScreen.tsx | 5 +++ .../screens/client/OrderTrackingScreen.tsx | 37 +++++++++++------ .../screens/client/ProductDetailScreen.tsx | 41 +++++++++++++++++++ mobile/src/screens/client/ProductsScreen.tsx | 8 +++- 4 files changed, 78 insertions(+), 13 deletions(-) diff --git a/mobile/src/screens/client/OrderHistoryScreen.tsx b/mobile/src/screens/client/OrderHistoryScreen.tsx index a06e6c36..d1444a38 100644 --- a/mobile/src/screens/client/OrderHistoryScreen.tsx +++ b/mobile/src/screens/client/OrderHistoryScreen.tsx @@ -67,6 +67,11 @@ export default function OrderHistoryScreen() { telegram_notifications_enabled: false, two_fa_enabled: false, contact_telegram: "", + client_color_primary: "", + client_color_secondary: "", + client_color_success: "", + client_color_danger: "", + client_color_warning: "", }); const [referralBalance, setReferralBalance] = useState(0); const [pointsRewards, setPointsRewards] = useState<{ diff --git a/mobile/src/screens/client/OrderTrackingScreen.tsx b/mobile/src/screens/client/OrderTrackingScreen.tsx index 1a5eaec5..568493a1 100644 --- a/mobile/src/screens/client/OrderTrackingScreen.tsx +++ b/mobile/src/screens/client/OrderTrackingScreen.tsx @@ -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} /> + {canConfirm && ( + setConfirmingId(order.id)} + style={styles.confirmBanner} + > + + Valider la réception + + )} {order.address_proposal_status === "pending" && order.proposed_address && ( @@ -602,18 +627,6 @@ export default function OrderTrackingScreen() { variant="outline" size="sm" /> - {canConfirm && ( -