家长中心待掌握错题查看:概览卡片可点击,进入孩子错题页并可标记已掌握
概览页「待掌握错题」卡片改 Link 进入 /parent/wrongbook?kid=xx(仅未掌握), WrongRow 注入 markAction 由家长 action 标记,家庭归属防越权,孩子端零改动。 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
7a11a89031
commit
f6d5aa8680
@@ -1,6 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { addDays, dowOf, todayStr } from "@/lib/dates";
|
||||
import { subjectMeta } from "@/lib/subjects";
|
||||
@@ -44,10 +45,13 @@ export function OverviewTab({ data }: { data: OverviewData }) {
|
||||
{kid.grammar.done}/{kid.grammar.total}
|
||||
</p>
|
||||
</div>
|
||||
<div className="rounded-xl border border-slate-100 bg-white p-3 text-center shadow-soft">
|
||||
<Link
|
||||
href={`/parent/wrongbook?kid=${kid.id}`}
|
||||
className="rounded-xl border border-slate-100 bg-white p-3 text-center shadow-soft transition-all duration-200 hover:-translate-y-0.5 hover:border-rose-200"
|
||||
>
|
||||
<p className="text-xs text-muted-foreground">待掌握错题</p>
|
||||
<p className="text-lg font-extrabold text-rose-600">{kid.wrongOpen}</p>
|
||||
</div>
|
||||
</Link>
|
||||
<div className="rounded-xl border border-slate-100 bg-white p-3 text-center shadow-soft">
|
||||
<p className="text-xs text-muted-foreground">最近周测</p>
|
||||
<p className="text-lg font-extrabold text-violet-600">
|
||||
|
||||
Reference in New Issue
Block a user