Final
This commit is contained in:
@@ -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)' : ''}
|
||||
|
||||
@@ -23,6 +23,7 @@ interface QRCodeData {
|
||||
createdAt: string;
|
||||
scans: number;
|
||||
style?: any;
|
||||
status?: 'ACTIVE' | 'INACTIVE';
|
||||
}
|
||||
|
||||
export default function DashboardPage() {
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user