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
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 && (

View File

@ -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={{

View File

@ -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={{