From 26f574cc9ddbe9dbd4f2799c0c6d900b6c150696 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 27 Sep 2022 21:55:06 +0400 Subject: [PATCH] Enable link to TNS book --- components/custom-ad.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/components/custom-ad.tsx b/components/custom-ad.tsx index b3c0d8ca9..911c45c66 100644 --- a/components/custom-ad.tsx +++ b/components/custom-ad.tsx @@ -1,5 +1,4 @@ import { Box, Flex, Heading, Image, Link } from '@chakra-ui/react'; -import { getParameterByName } from '../pages/upcoming'; function getPageSlug() { const pathname = (typeof window !== 'undefined' ? window : {} as any)?.location?.pathname || ''; @@ -13,11 +12,6 @@ export const CustomAd = () => { return null; } - const shouldShowAd = getParameterByName('ad'); - if (!shouldShowAd) { - return null; - } - return (