From 6e4a8ce30208f2f31f095b5593ac4022a74e683c Mon Sep 17 00:00:00 2001 From: Xor290 Date: Sat, 3 Oct 2026 13:21:26 +0200 Subject: [PATCH] chore: build --- frontend-admin/src/api/types.ts | 1 + .../src/screens/delivery/DashboardScreen.tsx | 36 ++++++++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/frontend-admin/src/api/types.ts b/frontend-admin/src/api/types.ts index e93cc343..e344c4b0 100644 --- a/frontend-admin/src/api/types.ts +++ b/frontend-admin/src/api/types.ts @@ -142,6 +142,7 @@ export interface DeliveryItem { adresse: string; total_prix: number; referral_used?: number; + is_new_client?: boolean; created_at: string; updated_at: string; eta?: string; diff --git a/frontend-admin/src/screens/delivery/DashboardScreen.tsx b/frontend-admin/src/screens/delivery/DashboardScreen.tsx index 3911d0a0..dc1f9e25 100644 --- a/frontend-admin/src/screens/delivery/DashboardScreen.tsx +++ b/frontend-admin/src/screens/delivery/DashboardScreen.tsx @@ -22,7 +22,7 @@ import { useWindowDimensions, } from "react-native"; import Geolocation from "@react-native-community/geolocation"; -import { Ionicons } from "@expo/vector-icons"; +import { Ionicons, FontAwesome5 } from "@expo/vector-icons"; import * as Location from "expo-location"; import { spacing, fontSize, borderRadius } from "../../theme"; import { useTheme } from "../../context/ThemeContext"; @@ -271,6 +271,8 @@ export default function DashboardScreen() { [], referral_used: detail.delivery?.referral_used || 0, + is_new_client: + detail.delivery?.is_new_client || false, }; } } catch { @@ -623,6 +625,38 @@ export default function DashboardScreen() { {item.clientName} )} + {item.is_new_client && ( + + + + NEW + + + )}