filtering improvements (#692)

+ limit wild west to 3 claims per channel
+ hide language for now until we can sync homepages + settings
This commit is contained in:
Thomas Zarebczan 2022-01-13 16:13:49 -05:00 committed by GitHub
parent d94f86aec4
commit e2f414f98c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 8 deletions

View file

@ -323,8 +323,8 @@ function ClaimListHeader(props: Props) {
</div> </div>
)} )}
{/* CONTENT_TYPES FIELD */} {/* CONTENT_TYPES FIELD - display using same logic as showDuration */}
{!claimType && ( {showDuration && (
<div <div
className={classnames('claim-search__input-container', { className={classnames('claim-search__input-container', {
'claim-search__input-container--selected': contentTypeParam, 'claim-search__input-container--selected': contentTypeParam,
@ -368,8 +368,8 @@ function ClaimListHeader(props: Props) {
</div> </div>
)} )}
{/* LANGUAGE FIELD */} {/* LANGUAGE FIELD - hidden for now */}
{!claimType && ( {false && !claimType && (
<div <div
className={classnames('claim-search__input-container', { className={classnames('claim-search__input-container', {
'claim-search__input-container--selected': shouldHighlight, 'claim-search__input-container--selected': shouldHighlight,

View file

@ -245,8 +245,8 @@ 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} 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}
@ -272,8 +272,7 @@ function DiscoverPage(props: Props) {
channelIds={channelIds} channelIds={channelIds}
limitClaimsPerChannel={ limitClaimsPerChannel={
SIMPLE_SITE SIMPLE_SITE
? (dynamicRouteProps && dynamicRouteProps.options && dynamicRouteProps.options.limitClaimsPerChannel) || ? (dynamicRouteProps && dynamicRouteProps.options && dynamicRouteProps.options.limitClaimsPerChannel) || 3
undefined
: 3 : 3
} }
meta={!useDualList && getMeta()} meta={!useDualList && getMeta()}