Skip to content

Commit 42c8c18

Browse files
committed
perf: remove redundant code
1 parent bddab68 commit 42c8c18

File tree

2 files changed

+1
-37
lines changed

2 files changed

+1
-37
lines changed

Diff for: src/app/AdSense.js

-34
This file was deleted.

Diff for: src/app/layout.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@ import "./globals.css";
33
import { Navigation } from "./ui/Navigation";
44
import { AntdRegistry } from "@ant-design/nextjs-registry";
55
import { GoogleTagManager } from "@next/third-parties/google";
6-
import AdsenseAd from "./AdSense";
76

87
export default function RootLayout({ children }: { children: React.ReactNode }) {
98
return (
109
<html lang="zh-Hans">
11-
<GoogleTagManager gtmId="GTM-WBM6XHGB" />
10+
<GoogleTagManager gtmId="GTM-YourTag" />
1211
<body>
1312
<Navigation />
1413
<AntdRegistry>
1514
<main>
1615
{children}
17-
<AdsenseAd />
1816
</main>
1917
</AntdRegistry>
2018
</body>

0 commit comments

Comments
 (0)