chore: build

This commit is contained in:
2026-06-12 09:43:29 +02:00
parent 13df186854
commit 2ca28e730b
4 changed files with 79 additions and 17 deletions
+1
View File
@@ -2145,6 +2145,7 @@ export type RewardCategoryConfig = {
category: string;
all_products: boolean;
product_ids: number[];
product_names: string[];
amount: number;
};
@@ -315,13 +315,21 @@ function ConsultationHistorique() {
<span className="reward-pool-name">{pool.name}</span>
<span className="reward-pool-pts">{pool.points} pts</span>
</div>
{pool.eligible_configs.some((cfg) => cfg.all_products) && (
{pool.eligible_configs.length > 0 && (
<div className="reward-eligible-cats">
{pool.eligible_configs.filter((cfg) => cfg.all_products).map((cfg) => (
<span key={cfg.category} className="reward-eligible-cat">
{cfg.category}{cfg.amount > 0 ? `${cfg.amount}` : ""}
</span>
))}
{pool.eligible_configs.map((cfg) =>
cfg.all_products ? (
<span key={cfg.category} className="reward-eligible-cat">
{cfg.category}{cfg.amount > 0 ? `${cfg.amount}` : ""}
</span>
) : (
cfg.product_names.map((name) => (
<span key={name} className="reward-eligible-cat">
{name}
</span>
))
)
)}
</div>
)}
<div className="reward-progress-bar">