chore: delete support preparing status
This commit is contained in:
@@ -266,7 +266,7 @@ export default function DashboardScreen() {
|
||||
const activeDelivery =
|
||||
enriched.find(
|
||||
(d) =>
|
||||
d.status === "in_progress" || d.status === "en_route",
|
||||
d.status === "en_route",
|
||||
) || enriched.find((d) => d.status === "assigned");
|
||||
if (activeDelivery && activeDelivery.adresse) {
|
||||
calcRoute(activeDelivery.adresse);
|
||||
@@ -525,7 +525,6 @@ export default function DashboardScreen() {
|
||||
// --------------------------------------------------
|
||||
const renderDelivery = ({ item }: { item: EnrichedDelivery }) => {
|
||||
const isActive =
|
||||
item.status === "in_progress" ||
|
||||
item.status === "en_route" ||
|
||||
item.status === "arrived" ||
|
||||
item.status === "assigned";
|
||||
@@ -550,8 +549,7 @@ export default function DashboardScreen() {
|
||||
? "Terminée"
|
||||
: item.status === "arrived"
|
||||
? "Arrivé"
|
||||
: item.status === "in_progress" ||
|
||||
item.status === "en_route"
|
||||
: item.status === "en_route"
|
||||
? "En cours"
|
||||
: "En attente"
|
||||
}
|
||||
@@ -561,8 +559,7 @@ export default function DashboardScreen() {
|
||||
? colors.success
|
||||
: item.status === "arrived"
|
||||
? colors.accent
|
||||
: item.status === "in_progress" ||
|
||||
item.status === "en_route"
|
||||
: item.status === "en_route"
|
||||
? colors.warning
|
||||
: colors.info
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user