render source overlay content by path ext, rather than type

This commit is contained in:
Lachlan Kermode
2019-01-03 11:48:40 +00:00
parent cf03cef3f7
commit c98d4cc73d
3 changed files with 92 additions and 110 deletions

View File

@@ -43,7 +43,6 @@ const CardSource = ({ source, isLoading, onClickHandler }) => {
const imgs = source.paths.filter(p => p.match(isImgUrl))
thumbnail = imgs.length > 0 ? imgs[0] : null
}
console.log(thumbnail)
const fallbackIcon = (
<i className="material-icons source-icon">