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