SiteNav now lives in the [id] layout instead of each page, so it stays mounted during route transitions. Switching between Dashboard, Uptime, Funnels, and Settings no longer flashes a full-page skeleton. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
504 B
TypeScript
20 lines
504 B
TypeScript
import type { Metadata } from 'next'
|
|
import SiteLayoutShell from './SiteLayoutShell'
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Dashboard | Pulse',
|
|
description: 'View your site analytics, traffic, and performance.',
|
|
robots: { index: false, follow: false },
|
|
}
|
|
|
|
export default async function SiteLayout({
|
|
children,
|
|
params,
|
|
}: {
|
|
children: React.ReactNode
|
|
params: Promise<{ id: string }>
|
|
}) {
|
|
const { id } = await params
|
|
return <SiteLayoutShell siteId={id}>{children}</SiteLayoutShell>
|
|
}
|