From aa653b065ae5c45624d576733145dad4e6740a81 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Fri, 20 Sep 2024 08:36:49 -0700 Subject: [PATCH] prize->sweeps --- web/components/search/contract-filters.tsx | 44 +++++----------------- 1 file changed, 10 insertions(+), 34 deletions(-) diff --git a/web/components/search/contract-filters.tsx b/web/components/search/contract-filters.tsx index ca3fb471ee..d71a6dac8b 100644 --- a/web/components/search/contract-filters.tsx +++ b/web/components/search/contract-filters.tsx @@ -41,7 +41,6 @@ import { FilterPill, TopicDropdownPill, } from './filter-pills' -import { SpiceCoin } from 'web/public/custom-components/spiceCoin' import { MarketTierType, TierParamsType, tiers } from 'common/tier' import { TierDropdownPill } from './filter-pills' import { useUser } from 'web/hooks/use-user' @@ -68,7 +67,6 @@ export function ContractFilters(props: { s: sort, f: filter, ct: contractType, - p: isPrizeMarketString, mt: currentTiers, tf: topicFilter, sw: isSweepiesString, @@ -108,12 +106,6 @@ export function ContractFilters(props: { track('select contract type', { contractType: selection }) } - const togglePrizeMarket = () => { - updateParams({ - p: isPrizeMarketString == '1' ? '0' : '1', - }) - } - const toggleSweepies = () => { updateParams({ sw: isSweepiesString == '1' ? '0' : '1', @@ -125,7 +117,6 @@ export function ContractFilters(props: { sort === 'close-date' || contractType === 'BOUNTIED_QUESTION' - const filterLabel = getLabelFromValue(FILTERS, filter) const sortLabel = getLabelFromValue(SORTS, sort) const contractTypeLabel = getLabelFromValue(CONTRACT_TYPES, contractType) @@ -244,21 +235,6 @@ export function ContractFilters(props: { selectFilter={selectFilter} currentFilter={filter} /> - {isPrizeMarketString === '1' && ( - -
- -
- Prize -
- )} {!hideFilter && currentTiers !== DEFAULT_TIER && ( @@ -353,7 +329,7 @@ function FilterModal(props: { selectFilter: (selection: Filter) => void selectSort: (selection: Sort) => void selectContractType: (selection: ContractTypeType) => void - togglePrizeMarket: () => void + toggleSweepies: () => void toggleTier: (tier: MarketTierType) => void hideFilter: boolean }) { @@ -364,7 +340,7 @@ function FilterModal(props: { selectFilter, selectContractType, selectSort, - togglePrizeMarket, + toggleSweepies, toggleTier, hideFilter, } = props @@ -372,7 +348,7 @@ function FilterModal(props: { s: sort, f: filter, ct: contractType, - p: isPrizeMarketString, + sw: isSweepiesString, mt: currentTiers, } = params @@ -396,15 +372,15 @@ function FilterModal(props: { - - Prize + Sweepstakes