Always show search placeholder

This commit is contained in:
James Grugett 2022-08-12 14:35:27 -05:00
parent 20ab313c6c
commit 3cbf5a6f7d
3 changed files with 1 additions and 5 deletions

View File

@ -59,7 +59,6 @@ export function ContractSearch(props: {
} }
highlightOptions?: ContractHighlightOptions highlightOptions?: ContractHighlightOptions
onContractClick?: (contract: Contract) => void onContractClick?: (contract: Contract) => void
showPlaceHolder?: boolean
hideOrderSelector?: boolean hideOrderSelector?: boolean
overrideGridClassName?: string overrideGridClassName?: string
cardHideOptions?: { cardHideOptions?: {
@ -75,7 +74,6 @@ export function ContractSearch(props: {
onContractClick, onContractClick,
overrideGridClassName, overrideGridClassName,
hideOrderSelector, hideOrderSelector,
showPlaceHolder,
cardHideOptions, cardHideOptions,
highlightOptions, highlightOptions,
headerClassName, headerClassName,
@ -269,7 +267,7 @@ export function ContractSearch(props: {
value={query} value={query}
onChange={(e) => updateQuery(e.target.value)} onChange={(e) => updateQuery(e.target.value)}
onBlur={trackCallback('search', { query })} onBlur={trackCallback('search', { query })}
placeholder={showPlaceHolder ? `Search ${filter} markets` : ''} placeholder={'Search'}
className="input input-bordered w-full" className="input input-bordered w-full"
/> />
{!query && ( {!query && (

View File

@ -68,7 +68,6 @@ export function MarketModal(props: {
overrideGridClassName={ overrideGridClassName={
'flex grid grid-cols-1 sm:grid-cols-2 flex-col gap-3 p-1' 'flex grid grid-cols-1 sm:grid-cols-2 flex-col gap-3 p-1'
} }
showPlaceHolder
cardHideOptions={{ hideGroupLink: true, hideQuickBet: true }} cardHideOptions={{ hideGroupLink: true, hideQuickBet: true }}
querySortOptions={{ disableQueryString: true }} querySortOptions={{ disableQueryString: true }}
highlightOptions={{ highlightOptions={{

View File

@ -619,7 +619,6 @@ function AddContractButton(props: { group: Group; user: User }) {
overrideGridClassName={ overrideGridClassName={
'flex grid grid-cols-1 sm:grid-cols-2 flex-col gap-3 p-1' 'flex grid grid-cols-1 sm:grid-cols-2 flex-col gap-3 p-1'
} }
showPlaceHolder={true}
cardHideOptions={{ hideGroupLink: true, hideQuickBet: true }} cardHideOptions={{ hideGroupLink: true, hideQuickBet: true }}
additionalFilter={{ excludeContractIds: group.contractIds }} additionalFilter={{ excludeContractIds: group.contractIds }}
highlightOptions={{ highlightOptions={{