This commit is contained in:
2025-12-31 17:45:49 +01:00
parent 42e8a02fde
commit 82ea760537
9 changed files with 689 additions and 129 deletions

View File

@@ -358,7 +358,7 @@ export default function AnalyticsPage() {
<td className="px-4 py-4 align-middle">
<Badge variant={
country.trend === 'up' ? 'success' :
country.trend === 'down' ? 'destructive' :
country.trend === 'down' ? 'error' :
'default'
}>
{country.trend === 'up' ? '↑' : country.trend === 'down' ? '↓' : '→'} {country.trendPercentage}%{country.isNew ? ' (new)' : ''}
@@ -407,7 +407,7 @@ export default function AnalyticsPage() {
<td className="px-4 py-4 align-middle">
<Badge variant={
qr.trend === 'up' ? 'success' :
qr.trend === 'down' ? 'destructive' :
qr.trend === 'down' ? 'error' :
'default'
}>
{qr.trend === 'up' ? '↑' : qr.trend === 'down' ? '↓' : '→'} {qr.trendPercentage}%{qr.isNew ? ' (new)' : ''}

View File

@@ -23,6 +23,7 @@ interface QRCodeData {
createdAt: string;
scans: number;
style?: any;
status?: 'ACTIVE' | 'INACTIVE';
}
export default function DashboardPage() {

View File

@@ -1,4 +1,5 @@
import type { Metadata } from 'next';
import { Suspense } from 'react';
import '@/styles/globals.css';
import { ToastContainer } from '@/components/ui/Toast';
import AuthProvider from '@/components/SessionProvider';
@@ -56,13 +57,15 @@ export default function RootLayout({
return (
<html lang="en">
<body className="font-sans">
<PostHogProvider>
<AuthProvider>
{children}
</AuthProvider>
<CookieBanner />
<ToastContainer />
</PostHogProvider>
<Suspense fallback={null}>
<PostHogProvider>
<AuthProvider>
{children}
</AuthProvider>
<CookieBanner />
<ToastContainer />
</PostHogProvider>
</Suspense>
</body>
</html>
);