Remove unused counts and meta information from EntryCard component

This commit is contained in:
2026-01-08 01:45:08 +01:00
parent 93fa2ac212
commit 85271593a6

View File

@@ -6,24 +6,12 @@ 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 (
<div className="entry-card">
<div className="entry-card__title">{entry.title}</div>
<div className="entry-card__meta">
<span className="pill">{entry.mode || 'mixed'}</span>
{entry.type && <span className="pill pill--ghost">{entry.type}</span>}
</div>
<div className="entry-card__counts">
<span>Grammar {counts.grammar}</span>
<span>Vocab {counts.vocab}</span>
<span>Phrases {counts.key_phrases}</span>
<span>Conversation {counts.conversation}</span>
<span>Quiz {counts.quiz}</span>
</div>
<div className="entry-card__actions">
<Link className="button button--ghost" to={learnLink}>
Learn