From 2666983f8311e88a4a5757053f0d7d8e0b003067 Mon Sep 17 00:00:00 2001 From: David Chee Date: Thu, 26 Sep 2024 12:55:19 -0700 Subject: [PATCH 1/3] fix politics and portfolio twomba toggle --- web/components/portfolio/twomba-portfolio-value-section.tsx | 2 +- web/components/us-elections/contracts/politics-card.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/components/portfolio/twomba-portfolio-value-section.tsx b/web/components/portfolio/twomba-portfolio-value-section.tsx index 24b6c83fb9..c34c04c24d 100644 --- a/web/components/portfolio/twomba-portfolio-value-section.tsx +++ b/web/components/portfolio/twomba-portfolio-value-section.tsx @@ -328,7 +328,7 @@ function TwombaPortfolioValueSkeleton(props: { Portfolio - + diff --git a/web/components/us-elections/contracts/politics-card.tsx b/web/components/us-elections/contracts/politics-card.tsx index 025fa1bcc7..5f92070ae8 100644 --- a/web/components/us-elections/contracts/politics-card.tsx +++ b/web/components/us-elections/contracts/politics-card.tsx @@ -128,7 +128,7 @@ export function PoliticsCard(props: { > {customTitle ?? contract.question} - {TWOMBA_ENABLED && } + {TWOMBA_ENABLED && } {children} From e9bbbc77615dd75103f844fc3c027da90ae975a7 Mon Sep 17 00:00:00 2001 From: David Chee Date: Thu, 26 Sep 2024 13:07:18 -0700 Subject: [PATCH 2/3] add twombatoggle to browse --- web/components/search/contract-filters.tsx | 23 +++++++--------------- web/components/twomba/twomba-toggle.tsx | 17 +++++++++++++--- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/web/components/search/contract-filters.tsx b/web/components/search/contract-filters.tsx index a178a3d28f..1cba69ad23 100644 --- a/web/components/search/contract-filters.tsx +++ b/web/components/search/contract-filters.tsx @@ -54,6 +54,7 @@ import { LiteGroup } from 'common/group' import { TWOMBA_ENABLED } from 'common/envs/constants' import { SweepiesCoin } from 'web/public/custom-components/sweepiesCoin' import { useSweepstakes } from '../sweestakes-context' +import { TwombaToggle } from '../twomba/twomba-toggle' export function ContractFilters(props: { className?: string @@ -158,23 +159,13 @@ export function ContractFilters(props: { {TWOMBA_ENABLED && ( - - - - Sweepstakes - - + )} - +