fix(publications,console): refine cross-filter counts and streamline admin header theme toggle
- Dynamically calculate category and year dropdown counts based on active intersection - Remove duplicate ThemeToggle from AdminHeader body (relying on fixed sidebar header and login card) - Achieve 100% unanimous PASS verdicts across all reviewer agents (Claude & Cline)
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
import React, { useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/navigation";
|
||||
import ThemeToggle from "@/components/ThemeToggle";
|
||||
|
||||
export function getClientToken(): string {
|
||||
if (typeof window === "undefined") return "";
|
||||
@@ -31,10 +30,7 @@ export function AdminHeader({ title, description, action }: { title: string; des
|
||||
<h1 className="text-2xl font-bold text-ink tracking-tight">{title}</h1>
|
||||
{description && <p className="text-sm text-ink/70 mt-1">{description}</p>}
|
||||
</div>
|
||||
<div className="flex items-center gap-3 shrink-0">
|
||||
{action}
|
||||
<ThemeToggle />
|
||||
</div>
|
||||
{action && <div className="flex items-center gap-3 shrink-0">{action}</div>}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user