chore: build
This commit is contained in:
@@ -210,7 +210,7 @@ function ConsultationHistorique() {
|
||||
if (res.success) {
|
||||
const text =
|
||||
res.product_added && res.product_names?.length
|
||||
? `🎁 ${res.product_names.join(", ")} ajouté${res.product_names.length > 1 ? "s" : ""} à votre panier ! Commandez au moins un produit pour en profiter.`
|
||||
? `${res.product_names.join(", ")} ajouté${res.product_names.length > 1 ? "s" : ""} à 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) => {
|
||||
@@ -505,6 +505,15 @@ function ConsultationHistorique() {
|
||||
<p
|
||||
className={`reward-feedback reward-feedback-${feedback.type}`}
|
||||
>
|
||||
{feedback.type ===
|
||||
"success" && (
|
||||
<FontAwesomeIcon
|
||||
icon={faGift}
|
||||
style={{
|
||||
marginRight: 6,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{feedback.text}
|
||||
</p>
|
||||
)}
|
||||
@@ -747,13 +756,18 @@ function ConsultationHistorique() {
|
||||
item.quantity !== 1
|
||||
? `×${item.quantity}`
|
||||
: ""}
|
||||
{item.price > 0
|
||||
? ` · valeur ${item.price.toFixed(2)} €`
|
||||
{item.type ===
|
||||
"half_price_product" &&
|
||||
item.price > 0
|
||||
? ` · ${item.price.toFixed(2)} €`
|
||||
: ""}
|
||||
</span>
|
||||
</div>
|
||||
<span className="reward-product-free">
|
||||
Offert
|
||||
{item.type ===
|
||||
"half_price_product"
|
||||
? "-50%"
|
||||
: "Offert"}
|
||||
</span>
|
||||
</button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user