Fix advanced filter showing up in Wild West (#695)

Behavior we want:
- hide Advanced Filter for Wild West
- show Advanded Filter & Filter for everything else
This commit is contained in:
infinite-persistence 2022-01-13 19:00:41 -08:00 committed by GitHub
parent e2f414f98c
commit 7affa8b7a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,7 +218,6 @@ function DiscoverPage(props: Props) {
headerLabel={headerLabel} headerLabel={headerLabel}
header={repostedUri ? <span /> : undefined} header={repostedUri ? <span /> : undefined}
tileLayout={repostedUri ? false : tileLayout} tileLayout={repostedUri ? false : tileLayout}
hideAdvancedFilter
hideFilters hideFilters
infiniteScroll={false} infiniteScroll={false}
loading={false} loading={false}
@ -245,8 +244,7 @@ function DiscoverPage(props: Props) {
<ClaimListDiscover <ClaimListDiscover
prefixUris={useDualList ? undefined : livestreamUris} prefixUris={useDualList ? undefined : livestreamUris}
pins={useDualList ? undefined : getPins(dynamicRouteProps)} pins={useDualList ? undefined : getPins(dynamicRouteProps)}
hideAdvancedFilter={SIMPLE_SITE ? tags && dynamicRouteProps : undefined} hideFilters={SIMPLE_SITE ? !dynamicRouteProps : undefined}
hideFilters={SIMPLE_SITE ? tags && dynamicRouteProps : undefined}
header={useDualList ? <span /> : repostedUri ? <span /> : undefined} header={useDualList ? <span /> : repostedUri ? <span /> : undefined}
tileLayout={repostedUri ? false : tileLayout} tileLayout={repostedUri ? false : tileLayout}
defaultOrderBy={SIMPLE_SITE ? (dynamicRouteProps ? undefined : CS.ORDER_BY_TRENDING) : undefined} defaultOrderBy={SIMPLE_SITE ? (dynamicRouteProps ? undefined : CS.ORDER_BY_TRENDING) : undefined}