Refactored the admin dashboard to use tabbed navigation for analytics and management. Enhanced AdminAnalytics with Recharts visualizations, added top vendors by revenue, and improved chart tooltips. Removed unused columns from vendor table. Updated layout and notification context to exclude admin pages from dashboard-specific UI and notifications. Minor debug logging added to SystemStatusCard.
17 lines
421 B
TypeScript
17 lines
421 B
TypeScript
"use client";
|
|
|
|
import { usePathname } from "next/navigation";
|
|
import KeepOnline from "@/components/KeepOnline";
|
|
|
|
const KeepOnlineWrapper = () => {
|
|
const pathname = usePathname();
|
|
|
|
// Don't show KeepOnline on admin pages or non-dashboard pages
|
|
if (!pathname?.includes("/dashboard") || pathname?.includes("/dashboard/admin")) {
|
|
return null;
|
|
}
|
|
|
|
return <KeepOnline />;
|
|
};
|
|
|
|
export default KeepOnlineWrapper;
|