mirror of
https://github.com/kjanat/livedash-node.git
synced 2026-01-16 18:32:10 +01:00
- Fix TopQuestionsChart with proper dark mode colors using CSS variables and shadcn/ui components - Enhance ResponseTimeDistribution with thicker bars (maxBarSize: 60) - Replace GeographicMap with dark/light mode compatible CartoDB tiles - Add custom text selection background color with primary theme color - Update all loading states to use proper CSS variables instead of hardcoded colors - Fix dashboard layout background to use bg-background instead of bg-gray-100
26 lines
684 B
TypeScript
26 lines
684 B
TypeScript
"use client";
|
|
|
|
import { SessionProvider } from "next-auth/react";
|
|
import { ReactNode } from "react";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
|
|
export function Providers({ children }: { children: ReactNode }) {
|
|
// Including error handling and refetch interval for better user experience
|
|
return (
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<SessionProvider
|
|
// Re-fetch session every 30 minutes (reduced from 10)
|
|
refetchInterval={30 * 60}
|
|
refetchOnWindowFocus={false}
|
|
>
|
|
{children}
|
|
</SessionProvider>
|
|
</ThemeProvider>
|
|
);
|
|
}
|