From e741b4375479c27a66238c067a704df8a84fa3e9 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 8 Jan 2026 01:01:24 +0100 Subject: [PATCH] Add Learn and Quiz buttons to EntryCard component --- client/src/components/EntryCard.tsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/client/src/components/EntryCard.tsx b/client/src/components/EntryCard.tsx index 1accc87..721ad26 100644 --- a/client/src/components/EntryCard.tsx +++ b/client/src/components/EntryCard.tsx @@ -7,8 +7,11 @@ interface Props { export default function EntryCard({ entry }: Props) { const { counts } = entry; + const learnLink = `/entry/${encodeURIComponent(entry.id)}`; + const quizLink = `/quiz?mode=entry&id=${encodeURIComponent(entry.id)}`; + return ( - +
{entry.title}
{entry.mode || 'mixed'} @@ -21,6 +24,14 @@ export default function EntryCard({ entry }: Props) { Conversation {counts.conversation} Quiz {counts.quiz}
- +
+ + Learn + + + Quiz + +
+
); }