From 0c9839e1d8c381385510029a018ed4af5d76b15e Mon Sep 17 00:00:00 2001 From: Tetardtek Date: Tue, 24 Mar 2026 19:21:24 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20bouton=20Voir=20tout=20sur=20qu=C3=AAte?= =?UTF-8?q?s=20combat=20=E2=80=94=20plus=20de=20qu=C3=AAtes=20cach=C3=A9es?= =?UTF-8?q?=20derri=C3=A8re=20les=20grosses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/QuestPage.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/QuestPage.tsx b/frontend/src/pages/QuestPage.tsx index 0135291..a79a72b 100644 --- a/frontend/src/pages/QuestPage.tsx +++ b/frontend/src/pages/QuestPage.tsx @@ -228,9 +228,9 @@ export function QuestPage() { const availableCraft = availableAll.filter((q: any) => !q.repeatable && isCraftQuest(q)); const availableDaily = availableAll.filter((q: any) => q.repeatable); - // Stagger: show max 3 combat quests at a time - const shownCombat = availableCombat.slice(0, 3); - const hiddenCount = availableCombat.length - shownCombat.length; + const [showAllCombat, setShowAllCombat] = useState(false); + const shownCombat = showAllCombat ? availableCombat : availableCombat.slice(0, 3); + const hiddenCount = availableCombat.length - 3; return (
@@ -262,9 +262,13 @@ export function QuestPage() {
{shownCombat.map((q: any) => )} {hiddenCount > 0 && ( -
- +{hiddenCount} quête{hiddenCount > 1 ? 's' : ''} supplémentaire{hiddenCount > 1 ? 's' : ''} après celles-ci -
+ )}
) : (