mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add links to Software column icons in table
This commit is contained in:
parent
11fe35901d
commit
65928a7a78
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
Loading…
Reference in a new issue