chore: build
This commit is contained in:
@@ -114,7 +114,7 @@ export default function OrderDetailsScreen() {
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
setProducts(enriched);
|
setProducts(enriched);
|
||||||
if (cmd.status === "approved" && cmd.livreur_assign) {
|
if (cmd.status === "approved") {
|
||||||
const r = await getOrderRatingStatus(params.orderId);
|
const r = await getOrderRatingStatus(params.orderId);
|
||||||
if (r.rated) setRatingDone({ rating: r.rating!, comment: r.comment ?? "" });
|
if (r.rated) setRatingDone({ rating: r.rating!, comment: r.comment ?? "" });
|
||||||
}
|
}
|
||||||
@@ -570,7 +570,7 @@ export default function OrderDetailsScreen() {
|
|||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
{order.status === "approved" && order.livreur_assign && (
|
{order.status === "approved" && (
|
||||||
ratingDone ? (
|
ratingDone ? (
|
||||||
<View style={styles.ratingDoneRow}>
|
<View style={styles.ratingDoneRow}>
|
||||||
<Ionicons name="star" size={14} color="#f59e0b" />
|
<Ionicons name="star" size={14} color="#f59e0b" />
|
||||||
@@ -677,7 +677,9 @@ export default function OrderDetailsScreen() {
|
|||||||
<Pressable onPress={() => {}}>
|
<Pressable onPress={() => {}}>
|
||||||
<View style={styles.modalSheet}>
|
<View style={styles.modalSheet}>
|
||||||
<Text style={styles.modalTitle}>Noter le livreur</Text>
|
<Text style={styles.modalTitle}>Noter le livreur</Text>
|
||||||
|
{order.livreur_assign ? (
|
||||||
<Text style={styles.modalSubtitle}>{order.livreur_assign}</Text>
|
<Text style={styles.modalSubtitle}>{order.livreur_assign}</Text>
|
||||||
|
) : null}
|
||||||
<View style={styles.starsRow}>
|
<View style={styles.starsRow}>
|
||||||
{[1, 2, 3, 4, 5].map((star) => (
|
{[1, 2, 3, 4, 5].map((star) => (
|
||||||
<TouchableOpacity key={star} onPress={() => setSelectedStars(star)}>
|
<TouchableOpacity key={star} onPress={() => setSelectedStars(star)}>
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ export default function OrderTrackingScreen() {
|
|||||||
"success",
|
"success",
|
||||||
);
|
);
|
||||||
fetchOrders();
|
fetchOrders();
|
||||||
|
navigation.navigate("OrderDetails", { orderId });
|
||||||
} else {
|
} else {
|
||||||
showToast(res.message || "Erreur", "error");
|
showToast(res.message || "Erreur", "error");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user