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

@ -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);
}