mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
link-ify Maintainers column in table
This commit is contained in:
parent
65928a7a78
commit
0783643779
1 changed files with 6 additions and 2 deletions
|
|
@ -59,7 +59,11 @@ const sortMethod = (a: number[], b: number[], maintainers: IMaintainer[]) => {
|
|||
const Cell = (maintainerIds: number[], maintainers: IMaintainer[]) =>
|
||||
maintainerIds
|
||||
? <div className="fl-tag-container">
|
||||
{maintainers.filter((m: IMaintainer) => maintainerIds.indexOf(m.id) > -1).map((m: IMaintainer) => m.name)
|
||||
.join(", ")}
|
||||
{maintainers.filter((m: IMaintainer) => maintainerIds.indexOf(m.id) > -1)
|
||||
.map((m: IMaintainer, i: number) => {
|
||||
return m.homeUrl
|
||||
? <a href={m.homeUrl} key={i}>{m.name}</a>
|
||||
: <span key={i}>{m.name}</span>;
|
||||
}).reduce(((prev: JSX.Element, curr: JSX.Element): any => [prev, ", ", curr]) as any)}
|
||||
</div>
|
||||
: null;
|
||||
Loading…
Reference in a new issue