Skip to content

Commit

Permalink
Moved script in next script
Browse files Browse the repository at this point in the history
  • Loading branch information
manishtiwari25 committed Oct 1, 2024
1 parent b1bec1d commit a66d312
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Providers } from "./provider";
import { Toaster } from "react-hot-toast";
import { NavigationBar } from "@/components/shared/NavigationBar";
import { GoogleAnalytics } from '@next/third-parties/google'
import Script from "next/script";

export const viewport: Viewport = {
themeColor: [
Expand Down Expand Up @@ -57,16 +58,18 @@ export default function RootLayout({
fontSans.variable
)}>
<Providers themeProps={{ attribute: "class", enableSystem: false }}>
<div >
<div>
<NavigationBar />
<main className="container mx-auto flex-grow">
<Toaster position="top-right" reverseOrder={false} />
{children}
</main>
</div>
</Providers>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2889277787752693"
crossOrigin="anonymous"></script>
<Script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2889277787752693"
crossOrigin="anonymous">

</Script>
</body>
<GoogleAnalytics gaId="G-Z6WDXYW5WY" />
</html >
Expand Down

0 comments on commit a66d312

Please sign in to comment.