From 02e28d4d4b311b00f20823acbbda7b0d4997feb5 Mon Sep 17 00:00:00 2001 From: Misode Date: Sat, 15 Oct 2022 07:23:16 +0200 Subject: [PATCH] Advertise minecraft live bingo --- src/app/components/Ad.tsx | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/app/components/Ad.tsx b/src/app/components/Ad.tsx index 553079c3..d21e09f1 100644 --- a/src/app/components/Ad.tsx +++ b/src/app/components/Ad.tsx @@ -7,6 +7,24 @@ type AdProps = { id: string, } export function Ad({ type, id }: AdProps) { + if (type === 'text') { + return
+ +
+ } + useEffect(() => { document.getElementById('ad-placeholder')?.remove() if ('ethicalads' in window) { @@ -14,5 +32,5 @@ export function Ad({ type, id }: AdProps) { } }, []) - return
+ return
}