Hide sort and query options when searching

This commit is contained in:
James Grugett 2022-10-05 13:12:28 -05:00
parent 37e8f2ff5a
commit 18f8ad433d

View File

@ -446,7 +446,7 @@ function ContractSearchControls(props: {
className="input input-bordered w-full" className="input input-bordered w-full"
autoFocus={autoFocus} autoFocus={autoFocus}
/> />
{!isMobile && ( {!isMobile && !query && (
<SearchFilters <SearchFilters
filter={filter} filter={filter}
selectFilter={selectFilter} selectFilter={selectFilter}
@ -457,7 +457,7 @@ function ContractSearchControls(props: {
includeProbSorts={includeProbSorts} includeProbSorts={includeProbSorts}
/> />
)} )}
{isMobile && ( {isMobile && !query && (
<> <>
<MobileSearchBar <MobileSearchBar
children={ children={