Skip to content

Commit 1eec921

Browse files
authored
Remove Layout component wrapper and reorder analytics components (#609)
- Removed Layout component wrapper from RootLayout - Reordered Analytics and SpeedInsights components to be inside the ThemeProvider - Moved Analytics component to the body section instead of html section This change simplifies the layout structure by removing an unnecessary wrapper component and ensures proper placement of analytics components within the theme provider context.
1 parent a7ec2bd commit 1eec921

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/layout.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Layout from '@/components/layout';
21
import { ThemeProvider } from '@/components/theme-provider';
32
import { Analytics } from '@vercel/analytics/next';
43
import { SpeedInsights } from '@vercel/speed-insights/next';
@@ -83,11 +82,11 @@ export default function RootLayout({ children }: { children: React.ReactNode })
8382
enableSystem
8483
disableTransitionOnChange
8584
>
86-
<Layout>{children}</Layout>
85+
{children}
8786
</ThemeProvider>
8887
<SpeedInsights />
88+
<Analytics />
8989
</body>
90-
<Analytics />
9190
</html>
9291
);
9392
}

0 commit comments

Comments
 (0)