Remove activity summary stats from banner
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m0s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m0s
This commit is contained in:
parent
dad62c9914
commit
e3265f03e2
1 changed files with 0 additions and 12 deletions
|
|
@ -13,9 +13,6 @@ interface DailyActivity {
|
|||
interface ActivitySummary {
|
||||
days: DailyActivity[];
|
||||
today: string;
|
||||
activeDays: number;
|
||||
flashcards: number;
|
||||
questions: number;
|
||||
currentStreak: number;
|
||||
}
|
||||
|
||||
|
|
@ -65,11 +62,6 @@ export function ActivityBanner({ onNewClass }: { onNewClass: () => void }) {
|
|||
<div className="relative grid gap-6 xl:grid-cols-[minmax(0,1fr)_10rem] xl:items-center">
|
||||
<div className="min-w-0">
|
||||
<ActivityHeatmap days={summary.days} today={summary.today} />
|
||||
<div className="mt-5 grid grid-cols-3 gap-3 border-t border-white/12 pt-5">
|
||||
<SummaryStat value={summary.activeDays} label="Active days" />
|
||||
<SummaryStat value={summary.flashcards} label="Flashcards" />
|
||||
<SummaryStat value={summary.questions} label="Questions" />
|
||||
</div>
|
||||
</div>
|
||||
<StreakDisplay streak={summary.currentStreak} />
|
||||
</div>
|
||||
|
|
@ -182,10 +174,6 @@ function StreakDisplay({ streak }: { streak: number }) {
|
|||
);
|
||||
}
|
||||
|
||||
function SummaryStat({ value, label }: { value: number; label: string }) {
|
||||
return <div><div className="text-xl font-extrabold sm:text-2xl">{value}</div><div className="mt-1 text-xs font-semibold text-white/50">{label}</div></div>;
|
||||
}
|
||||
|
||||
function getMonthLabel(week: DailyActivity[], previousWeek?: DailyActivity[]) {
|
||||
const firstOfMonth = week.find((day) => Number(day.date.slice(8, 10)) <= 7);
|
||||
if (!firstOfMonth) return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue