From 5dde7764e292aa0661a986bffb125ff9ce773e30 Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 16 Aug 2022 13:51:34 -0700 Subject: [PATCH] Release the ~owls pricing! Yaay the ~owls team says we're ready to launch! Bingo bongo! --- src/app/ItemPageLayout.js | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/src/app/ItemPageLayout.js b/src/app/ItemPageLayout.js index 38577bbc..e393a89f 100644 --- a/src/app/ItemPageLayout.js +++ b/src/app/ItemPageLayout.js @@ -105,7 +105,6 @@ export function SubtleSkeleton({ isLoaded, ...props }) { function ItemPageBadges({ item, isEmbedded }) { const searchBadgesAreLoaded = item?.name != null && item?.isNc != null; - const shouldShowOwls = useShouldShowOwls(); return ( @@ -151,7 +150,7 @@ function ItemPageBadges({ item, isEmbedded }) { Jellyneo - {item.isNc && shouldShowOwls && ( + {item.isNc && ( { - const onKeyPress = (e) => { - const newMostRecentKeys = [...mostRecentKeys, e.key].slice(-5); - if (newMostRecentKeys.join("") === "~owls") { - SHOULD_SHOW_OWLS = true; - setShouldShowOwls(true); - } - setMostRecentKeys(newMostRecentKeys); - }; - - window.addEventListener("keypress", onKeyPress); - return () => window.removeEventListener("keypress", onKeyPress); - }); - - return shouldShowOwls; -} - export default ItemPageLayout;