Skip to content

Commit 1ac6cac

Browse files
committed
Remove ads
1 parent f0cbc06 commit 1ac6cac

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

src/containers/post/RelatedPostAd.tsx

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,25 @@ function RelatedPostAd({ isMobile }: Props) {
4141
if (isMobile) {
4242
return (
4343
<div ref={ref}>
44-
<ins
45-
className="adsbygoogle"
46-
style={{ display: 'block' }}
47-
data-ad-client="ca-pub-5574866530496701"
48-
data-ad-slot="8181679131"
49-
data-ad-format="auto"
50-
data-full-width-responsive="true"
51-
></ins>
44+
{theme === 'dark' ? (
45+
<ins
46+
className="adsbygoogle"
47+
style={{ display: 'block' }}
48+
data-ad-format="fluid"
49+
data-ad-layout-key="-fb+5w+4e-db+86"
50+
data-ad-client="ca-pub-5574866530496701"
51+
data-ad-slot="9916259177"
52+
></ins>
53+
) : (
54+
<ins
55+
className="adsbygoogle"
56+
style={{ display: 'block' }}
57+
data-ad-format="fluid"
58+
data-ad-layout-key="-gh+5l+k-cu+l4"
59+
data-ad-client="ca-pub-5574866530496701"
60+
data-ad-slot="8237449336"
61+
></ins>
62+
)}
5263
</div>
5364
);
5465
}

0 commit comments

Comments
 (0)