Converting TuneIn URI into album to resolve viewability, also fixes #581

This commit is contained in:
James Barnsley
2020-08-18 20:18:29 +12:00
parent 9904a1c321
commit 8db8b0fcdb
15 changed files with 38 additions and 20 deletions

View File

@ -111,7 +111,7 @@ const SearchResults = ({
{/*<LazyLoadListener enabled={this.props.artists_more && spotify_search_enabled} loadMore={loadMore} />*/}
{resultsCount > results.length && (
<Button uri={`iris:search:${type}:${encodedTerm}`}>
<Button uri={`iris:search:${type}:${encodedTerm}`} debug>
<I18n path={`search.${type}.more`} count={resultsCount} />
</Button>
)}

View File

@ -1,12 +1,11 @@
import React, { memo } from 'react';
import Link from './Link';
import { uriType as uriTypeHelper } from '../util/helpers';
export default memo((props) => {
let to = null;
let { uri, type } = props;
const uriType = type || uriTypeHelper(uri);
let { uri } = props;
const uriType = uriTypeHelper(uri);
if (!props.unencoded) {
uri = encodeURIComponent(uri);
}