chore: fix ui incrementation
This commit is contained in:
@@ -231,7 +231,7 @@ export default function DashboardScreen() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const allDeliveries = [...rawDeliveries, ...queueCommands].filter(
|
const allDeliveries = [...rawDeliveries, ...queueCommands].filter(
|
||||||
(d) => d.status !== "approved",
|
(d) => d.status !== "approved" && d.status !== "cancelled",
|
||||||
);
|
);
|
||||||
|
|
||||||
const enriched: EnrichedDelivery[] = await Promise.all(
|
const enriched: EnrichedDelivery[] = await Promise.all(
|
||||||
|
|||||||
@@ -303,6 +303,34 @@ export default function CheckoutScreen() {
|
|||||||
lineHeight: 16,
|
lineHeight: 16,
|
||||||
},
|
},
|
||||||
prefillHint: { color: "#6ee7b7", fontSize: fontSize.xs, marginTop: 4, opacity: 0.85 },
|
prefillHint: { color: "#6ee7b7", fontSize: fontSize.xs, marginTop: 4, opacity: 0.85 },
|
||||||
|
telegramNote: {
|
||||||
|
flexDirection: "row",
|
||||||
|
gap: spacing.s,
|
||||||
|
alignItems: "flex-start",
|
||||||
|
backgroundColor: "rgba(34, 158, 217, 0.08)",
|
||||||
|
borderWidth: 1,
|
||||||
|
borderColor: "rgba(34, 158, 217, 0.3)",
|
||||||
|
borderRadius: borderRadius.md,
|
||||||
|
padding: spacing.m,
|
||||||
|
marginTop: spacing.l,
|
||||||
|
},
|
||||||
|
telegramNoteTitle: {
|
||||||
|
color: "#29b6f6",
|
||||||
|
fontSize: fontSize.sm,
|
||||||
|
fontWeight: "700",
|
||||||
|
marginBottom: 3,
|
||||||
|
},
|
||||||
|
telegramNoteText: {
|
||||||
|
color: colors.textMuted,
|
||||||
|
fontSize: fontSize.xs,
|
||||||
|
lineHeight: 18,
|
||||||
|
},
|
||||||
|
telegramNoteLink: {
|
||||||
|
color: "#29b6f6",
|
||||||
|
fontSize: fontSize.xs,
|
||||||
|
fontWeight: "600",
|
||||||
|
marginTop: 4,
|
||||||
|
},
|
||||||
invalidAddrContent: { gap: spacing.m },
|
invalidAddrContent: { gap: spacing.m },
|
||||||
invalidAddrIconContainer: { alignItems: "center" },
|
invalidAddrIconContainer: { alignItems: "center" },
|
||||||
invalidAddrIconCircle: {
|
invalidAddrIconCircle: {
|
||||||
@@ -584,6 +612,20 @@ export default function CheckoutScreen() {
|
|||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* Note Telegram */}
|
||||||
|
<View style={styles.telegramNote}>
|
||||||
|
<Ionicons name="logo-telegram" size={22} color="#229ed9" style={{ marginTop: 2 }} />
|
||||||
|
<View style={{ flex: 1 }}>
|
||||||
|
<Text style={styles.telegramNoteTitle}>Compte Telegram requis</Text>
|
||||||
|
<Text style={styles.telegramNoteText}>
|
||||||
|
Votre commande ne pourra être validée que si votre compte Telegram est lié.{" "}
|
||||||
|
</Text>
|
||||||
|
<TouchableOpacity onPress={() => navigation.navigate("Profile")}>
|
||||||
|
<Text style={styles.telegramNoteLink}>Lier depuis votre profil →</Text>
|
||||||
|
</TouchableOpacity>
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
|
|
||||||
{error && nom.trim() && prenom.trim() && telephone.trim() && address.trim() && (
|
{error && nom.trim() && prenom.trim() && telephone.trim() && address.trim() && (
|
||||||
<Text style={styles.errorText}>{error}</Text>
|
<Text style={styles.errorText}>{error}</Text>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user