Skip to content

Commit 104c603

Browse files
committed
fix: adsense ins
1 parent 7007055 commit 104c603

File tree

1 file changed

+18
-35
lines changed

1 file changed

+18
-35
lines changed

apps/www/app/docs/@aside/page.tsx

Lines changed: 18 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Link from "next/link";
1+
import Script from "next/script";
22
import {
33
Card,
44
CardHeader,
@@ -29,40 +29,23 @@ export default function DocsAside() {
2929
</div>
3030
</CardContent>
3131
</Card>
32-
33-
<Card className="mt-4">
34-
<CardHeader>
35-
<CardTitle>Popular Hooks</CardTitle>
36-
</CardHeader>
37-
<CardContent>
38-
<div className="space-y-2 text-sm">
39-
<Link
40-
href="/docs/use-local-storage"
41-
className="block hover:text-blue-500"
42-
>
43-
useLocalStorage
44-
</Link>
45-
<Link
46-
href="/docs/use-counter"
47-
className="block hover:text-blue-500"
48-
>
49-
useCounter
50-
</Link>
51-
<Link href="/docs/use-toggle" className="block hover:text-blue-500">
52-
useToggle
53-
</Link>
54-
</div>
55-
</CardContent>
56-
</Card>
57-
58-
<Card className="mt-4">
59-
<CardHeader>
60-
<CardTitle>Need Help?</CardTitle>
61-
</CardHeader>
62-
<CardContent className="text-sm">
63-
<p>Check out our examples and documentation for each hook.</p>
64-
</CardContent>
65-
</Card>
32+
<div className="mt-4">
33+
<ins
34+
className="adsbygoogle"
35+
style={{ display: "block", width: 240, height: 400 }}
36+
data-ad-client="ca-pub-1640905025052378"
37+
data-ad-slot="9540285659"
38+
data-ad-format="auto"
39+
data-full-width-responsive="true"
40+
/>
41+
<Script
42+
id="adsense-docs-aside"
43+
strategy="afterInteractive"
44+
dangerouslySetInnerHTML={{
45+
__html: "(adsbygoogle = window.adsbygoogle || []).push({});",
46+
}}
47+
/>
48+
</div>
6649
</aside>
6750
);
6851
}

0 commit comments

Comments
 (0)