Skip to content

Commit

Permalink
refactor: doc script
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-logan committed May 27, 2024
1 parent c2375aa commit 213ea2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import "./globals.css";

import type { Metadata } from "next";
import { Inter } from "next/font/google";
import Script from "next/script";

import Adsense from "@/components/Adsense";
import Footer from "@/components/Footer";
Expand Down Expand Up @@ -67,7 +66,7 @@ export default function RootLayout({
<Header />
{children}
<Footer />
<Script
<script
data-name="BMC-Widget"
data-cfasync="false"
src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js"
Expand Down
4 changes: 1 addition & 3 deletions docs/src/components/Adsense/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import Script from "next/script";

interface AdsenseProps {
GOOGLE_ADSENSE_CLIENT_ID: string | undefined;
}

export default function Adsense({ GOOGLE_ADSENSE_CLIENT_ID }: AdsenseProps) {
return (
<Script
<script
async
src={`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${GOOGLE_ADSENSE_CLIENT_ID}`}
crossOrigin="anonymous"
Expand Down

0 comments on commit 213ea2d

Please sign in to comment.