From d658a48b6673df54f105169891054751deb478b0 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Tue, 30 Aug 2022 10:31:35 -0700 Subject: [PATCH] Revert "hide quick bet on mobile" This reverts commit 3d073da97e7fd7c6a381f340e82abd4128054fc9. --- web/components/contract/contract-card.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index ef23b4be..e7c26fe0 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -32,7 +32,6 @@ import { track } from '@amplitude/analytics-browser' import { trackCallback } from 'web/lib/service/analytics' import { getMappedValue } from 'common/pseudo-numeric' import { Tooltip } from '../tooltip' -import { useWindowSize } from 'web/hooks/use-window-size' export function ContractCard(props: { contract: Contract @@ -64,11 +63,7 @@ export function ContractCard(props: { const marketClosed = (contract.closeTime || Infinity) < Date.now() || !!resolution - const { width } = useWindowSize() - const isMobile = (width ?? 0) < 768 - const showQuickBet = - !isMobile && user && !marketClosed && (outcomeType === 'BINARY' || outcomeType === 'PSEUDO_NUMERIC') &&