From d3d094e4429748005a0f8bfc463c86869cf000bc Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 28 Jun 2026 12:29:03 -0700 Subject: [PATCH] feat: Add toggle for collapsing quiz topics list --- src/components/quizzes/QuizViewer.tsx | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/src/components/quizzes/QuizViewer.tsx b/src/components/quizzes/QuizViewer.tsx index da91fa8..90f55f0 100644 --- a/src/components/quizzes/QuizViewer.tsx +++ b/src/components/quizzes/QuizViewer.tsx @@ -47,6 +47,7 @@ export function QuizViewer({ quiz, retakeIds, isShared = false, onFinished }: Qu const [loading, setLoading] = useState(true); const [resultsData, setResultsData] = useState(null); + const [showTopics, setShowTopics] = useState(false); // Initialize session useEffect(() => { @@ -274,12 +275,26 @@ export function QuizViewer({ quiz, retakeIds, isShared = false, onFinished }: Qu {/* Title & Meta */}
-

- {quiz.name} -

-
- {categories} -
+ + + {showTopics && ( +
+ {categories} +
+ )}
{/* Main Unified Card */}