Skip to content

Commit

Permalink
Update layout.tsx (#608)
Browse files Browse the repository at this point in the history
* Update layout.tsx

* Update install_and_test_elegant_core.yml

* 4.0.3
  • Loading branch information
Bowens20832 authored Nov 28, 2024
1 parent 2017785 commit 92722bb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/install_and_test_elegant_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Install and Test Elegant core
on:
push:
paths:
- source/**
- packages/elegant/**
jobs:
test:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elegant-cli",
"version": "4.0.2",
"version": "4.0.3",
"description": "Build SEO-friendly websites, super fast full-stack web applications, and much more with Elegant.",
"scripts": {
"build:elegant": "cd packages/elegant && npm install && npm run build",
Expand Down
32 changes: 15 additions & 17 deletions packages/elegant/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,23 +41,21 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<SessionProvider>
<html lang="en" className="h-full" suppressHydrationWarning>
{process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID && (
<Analytics GA_ID={process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID || ""}/>
<html lang="en" className="h-full" suppressHydrationWarning>
{process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID && (
<Analytics GA_ID={process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID || ""}/>
)}
<body className={cn(
"bg-white dark:bg-slate-900 antialiased text-slate-500 dark:text-slate-400",
inter.className
)}>
<ThemeProvider attribute="class">
{children}
</ThemeProvider>
{process.env.VERCEL_ANALYTICS && (
<VercelAnalytics />
)}
<body className={cn(
"bg-white dark:bg-slate-900 antialiased text-slate-500 dark:text-slate-400",
inter.className
)}>
<ThemeProvider attribute="class">
{children}
</ThemeProvider>
{process.env.VERCEL_ANALYTICS && (
<VercelAnalytics />
)}
</body>
</html>
</SessionProvider>
</body>
</html>
);
}

0 comments on commit 92722bb

Please sign in to comment.