chore: build
Frontend Client - EAS Build / build (push) Failing after 1h41m31s
Frontend Web - Build & Lint / build (push) Successful in 15m1s

This commit is contained in:
Xor290
2026-08-20 19:36:22 +02:00
parent 5a6861ae04
commit 12cc14eb2b
3 changed files with 43 additions and 13 deletions
@@ -146,7 +146,7 @@ export default function OrderHistoryScreen() {
if (res.success) {
const text =
res.product_added && res.product_name
? `🎁 ${res.product_name} ajouté à votre panier ! Commandez au moins un produit pour en profiter.`
? `${res.product_name} ajouté à votre panier ! Commandez au moins un produit pour en profiter.`
: res.description || "Récompense réclamée !";
setClaimFeedback({ pool: poolKey, type: "success", text });
getMyPointsRewards().then((r) => {
@@ -882,16 +882,34 @@ export default function OrderHistoryScreen() {
: `Encore ${remaining} pts pour une récompense`}
</Text>
{feedback && (
<Text
style={
feedback.type ===
"success"
? styles.feedbackSuccess
: styles.feedbackError
}
<View
style={{
flexDirection:
"row",
alignItems:
"center",
gap: 4,
}}
>
{feedback.text}
</Text>
{feedback.type ===
"success" && (
<Ionicons
name="gift-outline"
size={12}
color="#10b981"
/>
)}
<Text
style={
feedback.type ===
"success"
? styles.feedbackSuccess
: styles.feedbackError
}
>
{feedback.text}
</Text>
</View>
)}
{pool.rewards_available > 0 && (
<TouchableOpacity