From 74d4db19cf6c3adc5137fc9891f217739eb5b28f Mon Sep 17 00:00:00 2001 From: David Chee Date: Wed, 25 Sep 2024 15:33:39 -0700 Subject: [PATCH] Revert "Show twomba tooltip on all markets" This reverts commit e48568fdcbc36340d11cb93fc7efde2381542f70. --- .../contract/twomba-header-actions.tsx | 19 +-- web/components/twomba/twomba-toggle.tsx | 74 ++++----- web/public/SweepiesFlatX.svg | 141 ------------------ .../custom-components/sweepiesFlatCoin.tsx | 1 + .../custom-components/sweepiesFlatCoinX.tsx | 17 --- 5 files changed, 34 insertions(+), 218 deletions(-) delete mode 100644 web/public/SweepiesFlatX.svg delete mode 100644 web/public/custom-components/sweepiesFlatCoinX.tsx diff --git a/web/components/contract/twomba-header-actions.tsx b/web/components/contract/twomba-header-actions.tsx index 2e73f0cc63..9c517a05f6 100644 --- a/web/components/contract/twomba-header-actions.tsx +++ b/web/components/contract/twomba-header-actions.tsx @@ -249,21 +249,14 @@ export function TwombaHeaderActions(props: { : []), ] - const sweepsEnabled = !!playContract.siblingContractId - - const isNonBetPollOrBountiedQuestion = - playContract.mechanism === 'none' && - (playContract.outcomeType === 'POLL' || - playContract.outcomeType === 'BOUNTIED_QUESTION') - return ( + // make tooltip children stretch -
- {!isNonBetPollOrBountiedQuestion && ( - - )} -
- + {!!currentContract.siblingContractId && ( +
+ +
+ )} {!playContract.coverImageUrl && isCreator && ( { - if (sweepsEnabled) { - setIsPlay(!isPlay) - } - } return ( - setIsPlay(!isPlay)} > - - + /> + ) } diff --git a/web/public/SweepiesFlatX.svg b/web/public/SweepiesFlatX.svg deleted file mode 100644 index cd3490c30a..0000000000 --- a/web/public/SweepiesFlatX.svg +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/web/public/custom-components/sweepiesFlatCoin.tsx b/web/public/custom-components/sweepiesFlatCoin.tsx index 34d23c3e56..da20764b12 100644 --- a/web/public/custom-components/sweepiesFlatCoin.tsx +++ b/web/public/custom-components/sweepiesFlatCoin.tsx @@ -1,5 +1,6 @@ import clsx from 'clsx' import { ENV_CONFIG } from 'common/envs/constants' +import Image from 'next/image' export function SweepiesFlatCoin(props: { className?: string }) { const { className } = props diff --git a/web/public/custom-components/sweepiesFlatCoinX.tsx b/web/public/custom-components/sweepiesFlatCoinX.tsx deleted file mode 100644 index 413051d266..0000000000 --- a/web/public/custom-components/sweepiesFlatCoinX.tsx +++ /dev/null @@ -1,17 +0,0 @@ -import clsx from 'clsx' -import { ENV_CONFIG } from 'common/envs/constants' - -export function SweepiesFlatCoinX(props: { className?: string }) { - const { className } = props - return ( - {ENV_CONFIG.moneyMoniker} - ) -}