diff --git a/client/src/components/QuizRunner.tsx b/client/src/components/QuizRunner.tsx index 991c0ef..39c8bfd 100644 --- a/client/src/components/QuizRunner.tsx +++ b/client/src/components/QuizRunner.tsx @@ -549,11 +549,7 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt Home {entryLink && ( - + Back to learn page )} @@ -570,7 +566,7 @@ export default function QuizRunner({ defaultMode = 'all', defaultEntryId, autoSt {idx + 1}. {question.prompt_en || 'Question'} {isRandomMode && ( - + Learn page » )} diff --git a/client/src/pages/EntryPage.tsx b/client/src/pages/EntryPage.tsx index a5861d4..58233f0 100644 --- a/client/src/pages/EntryPage.tsx +++ b/client/src/pages/EntryPage.tsx @@ -1,5 +1,5 @@ import { useEffect, useMemo, useState } from 'react'; -import { useLocation, useNavigate, useParams } from 'react-router-dom'; +import { useNavigate, useParams } from 'react-router-dom'; import { fetchEntry } from '../api'; import VideoPlayer from '../components/VideoPlayer'; import { ConversationPanel, GrammarPanel, KeyPhrasePanel, VocabPanel } from '../components/ItemPanels'; @@ -8,7 +8,6 @@ import type { EntryDetail } from '../types'; export default function EntryPage() { const { idEncoded } = useParams(); - const location = useLocation(); const navigate = useNavigate(); const [entry, setEntry] = useState(null); const [loading, setLoading] = useState(true); @@ -40,15 +39,11 @@ export default function EntryPage() { const quizLink = `/quiz?mode=entry&id=${encodeURIComponent(entry.id)}`; const ig = entry.ig_meta; - const fromSummary = Boolean(location.state && (location.state as any).fromSummary); return ( navigate(-1)}>← Back - {fromSummary && ( - navigate(-1)}>Back to summary - )}