From ccafeebde8ea0221d5738ae1c873d097a326cf64 Mon Sep 17 00:00:00 2001 From: Jas Laferriere Date: Wed, 25 Dec 2024 11:08:52 -0500 Subject: [PATCH] disable ad dialog for spif shop --- src/renderer/components/ad_dialog.tsx | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/renderer/components/ad_dialog.tsx b/src/renderer/components/ad_dialog.tsx index 74a66f5a0..6edb2ab5e 100644 --- a/src/renderer/components/ad_dialog.tsx +++ b/src/renderer/components/ad_dialog.tsx @@ -8,16 +8,23 @@ import useMediaQuery from "@mui/material/useMediaQuery"; import { useState } from "react"; import { ExternalLink as A } from "@/components/external_link"; -import spifShopImage from "@/styles/images/ads/spif-slippi-shop-full-size.png"; -const getActiveCampaign = () => { - const now = new Date(); - const start = new Date("2024-12-25"); - const end = new Date("2025-01-12"); +// import spifShopImage from "@/styles/images/ads/spif-slippi-shop-full-size.png"; - if (now >= start && now <= end) { - return { image: spifShopImage, seenKey: "SPIF_SHOP_SEEN" }; - } +const getActiveCampaign = (): + | { + image: string; + seenKey: string; + } + | undefined => { + // const now = new Date(); + + // // I'm disabling this because the banner by itself is probably enough. This feels quite heavy. + // const start = new Date("2024-12-25"); + // const end = new Date("2025-01-12"); + // if (now >= start && now <= end) { + // return { image: spifShopImage, seenKey: "SPIF_SHOP_SEEN" }; + // } return undefined; };