From 92722bb53ccbbab12004bb43662dfe46202d7b90 Mon Sep 17 00:00:00 2001 From: Brandon Owens Date: Thu, 28 Nov 2024 12:00:12 -0500 Subject: [PATCH] Update layout.tsx (#608) * Update layout.tsx * Update install_and_test_elegant_core.yml * 4.0.3 --- .../install_and_test_elegant_core.yml | 2 +- package.json | 2 +- packages/elegant/src/app/layout.tsx | 32 +++++++++---------- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/install_and_test_elegant_core.yml b/.github/workflows/install_and_test_elegant_core.yml index d379d05e..9c363b7f 100644 --- a/.github/workflows/install_and_test_elegant_core.yml +++ b/.github/workflows/install_and_test_elegant_core.yml @@ -2,7 +2,7 @@ name: Install and Test Elegant core on: push: paths: - - source/** + - packages/elegant/** jobs: test: runs-on: ubuntu-latest diff --git a/package.json b/package.json index b3be3f63..2997dc14 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/elegant/src/app/layout.tsx b/packages/elegant/src/app/layout.tsx index 92964858..022da397 100644 --- a/packages/elegant/src/app/layout.tsx +++ b/packages/elegant/src/app/layout.tsx @@ -41,23 +41,21 @@ export default function RootLayout({ children: React.ReactNode; }>) { return ( - - - {process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID && ( - + + {process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID && ( + + )} + + + {children} + + {process.env.VERCEL_ANALYTICS && ( + )} - - - {children} - - {process.env.VERCEL_ANALYTICS && ( - - )} - - - + + ); }