add links to Software column icons in table

This commit is contained in:
Collin M. Barrett 2018-09-29 18:57:20 -05:00
parent 11fe35901d
commit 65928a7a78

View file

@ -63,5 +63,9 @@ const sortMethod = (a: number, b: number, software: ISoftware[]) => {
const Cell = (listSyntaxId: number, software: ISoftware[]) =>
listSyntaxId
? software.filter((s: ISoftware) => s.syntaxIds.indexOf(listSyntaxId) > -1)
.map((s: ISoftware, i: number) => <SoftwareIcon id={s.id} key={i}/>)
.map((s: ISoftware, i: number) => s.homeUrl
? <a href={s.homeUrl} key={i}>
<SoftwareIcon id={s.id}/>
</a>
: <SoftwareIcon id={s.id} key={i}/>)
: null;