From 3cbf5a6f7d0b9f21bb04a26ae175672decf5e95d Mon Sep 17 00:00:00 2001 From: James Grugett Date: Fri, 12 Aug 2022 14:35:27 -0500 Subject: [PATCH] Always show search placeholder --- web/components/contract-search.tsx | 4 +--- web/components/editor/market-modal.tsx | 1 - web/pages/group/[...slugs]/index.tsx | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx index 40a62923..f9c48b78 100644 --- a/web/components/contract-search.tsx +++ b/web/components/contract-search.tsx @@ -59,7 +59,6 @@ export function ContractSearch(props: { } highlightOptions?: ContractHighlightOptions onContractClick?: (contract: Contract) => void - showPlaceHolder?: boolean hideOrderSelector?: boolean overrideGridClassName?: string cardHideOptions?: { @@ -75,7 +74,6 @@ export function ContractSearch(props: { onContractClick, overrideGridClassName, hideOrderSelector, - showPlaceHolder, cardHideOptions, highlightOptions, headerClassName, @@ -269,7 +267,7 @@ export function ContractSearch(props: { value={query} onChange={(e) => updateQuery(e.target.value)} onBlur={trackCallback('search', { query })} - placeholder={showPlaceHolder ? `Search ${filter} markets` : ''} + placeholder={'Search'} className="input input-bordered w-full" /> {!query && ( diff --git a/web/components/editor/market-modal.tsx b/web/components/editor/market-modal.tsx index 1c88afbc..0486b9e9 100644 --- a/web/components/editor/market-modal.tsx +++ b/web/components/editor/market-modal.tsx @@ -68,7 +68,6 @@ export function MarketModal(props: { overrideGridClassName={ 'flex grid grid-cols-1 sm:grid-cols-2 flex-col gap-3 p-1' } - showPlaceHolder cardHideOptions={{ hideGroupLink: true, hideQuickBet: true }} querySortOptions={{ disableQueryString: true }} highlightOptions={{ diff --git a/web/pages/group/[...slugs]/index.tsx b/web/pages/group/[...slugs]/index.tsx index b9c8c277..0daf74c7 100644 --- a/web/pages/group/[...slugs]/index.tsx +++ b/web/pages/group/[...slugs]/index.tsx @@ -619,7 +619,6 @@ function AddContractButton(props: { group: Group; user: User }) { overrideGridClassName={ 'flex grid grid-cols-1 sm:grid-cols-2 flex-col gap-3 p-1' } - showPlaceHolder={true} cardHideOptions={{ hideGroupLink: true, hideQuickBet: true }} additionalFilter={{ excludeContractIds: group.contractIds }} highlightOptions={{