search defaults to 'for you'; hide pills for additional filters

This commit is contained in:
mantikoros 2022-07-20 00:03:03 -05:00
parent 83e9408d69
commit 0013f76873

View File

@ -99,7 +99,7 @@ export function ContractSearch(props: {
const [filter, setFilter] = useState<filter>( const [filter, setFilter] = useState<filter>(
querySortOptions?.defaultFilter ?? 'open' querySortOptions?.defaultFilter ?? 'open'
) )
const [pillFilter, setPillFilter] = useState<string | undefined>() const [pillFilter, setPillFilter] = useState<string | undefined>('personal')
const { filters, numericFilters } = useMemo(() => { const { filters, numericFilters } = useMemo(() => {
let filters = [ let filters = [
@ -201,7 +201,7 @@ export function ContractSearch(props: {
<Spacer h={3} /> <Spacer h={3} />
{!additionalFilter?.creatorId && !additionalFilter?.groupSlug && ( {!additionalFilter && (
<Row className="scrollbar-hide items-start gap-2 overflow-x-auto"> <Row className="scrollbar-hide items-start gap-2 overflow-x-auto">
<PillButton <PillButton
key={'all'} key={'all'}