Add link to learn page in ExplanationPanel

This commit is contained in:
2026-01-08 02:22:48 +01:00
parent 745c577203
commit 618776a73e

View File

@@ -191,7 +191,12 @@ import IgMetaBlock from './IgMetaBlock';
function ExplanationPanel({ question, targets }: { question: QuizQuestionWithEntry; targets: TargetHit[] }) { function ExplanationPanel({ question, targets }: { question: QuizQuestionWithEntry; targets: TargetHit[] }) {
return ( return (
<div className="explanation"> <div className="explanation">
<h4>Explanation</h4> <div className="explanation-header">
<h4>Explanation</h4>
<Link className="entry-link" to={`/entry/${encodeURIComponent(question.entryId)}`}>
Open learn page &raquo;
</Link>
</div>
{targets.length ? ( {targets.length ? (
<div className="explanation-grid"> <div className="explanation-grid">
{targets.map(({ group, item }) => ( {targets.map(({ group, item }) => (