mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
add links to Licenses in table
This commit is contained in:
parent
4b60b715d9
commit
11fe35901d
1 changed files with 8 additions and 6 deletions
|
|
@ -56,9 +56,11 @@ const sortMethod = (a: number, b: number, licenses: ILicense[]) => {
|
|||
}
|
||||
};
|
||||
|
||||
const Cell = (licenseId: number, licenses: ILicense[]) =>
|
||||
licenseId
|
||||
? <div className="fl-tag-container">
|
||||
{licenses.filter((l: ILicense) => licenseId === l.id)[0].name}
|
||||
</div>
|
||||
: null;
|
||||
const Cell = (licenseId: number, licenses: ILicense[]) => {
|
||||
const license = licenses.filter((l: ILicense) => licenseId === l.id)[0];
|
||||
return license
|
||||
? <div className="fl-tag-container">
|
||||
{license.descriptionUrl ? <a href={license.descriptionUrl}>{license.name}</a> : license.name}
|
||||
</div>
|
||||
: null;
|
||||
};
|
||||
Loading…
Reference in a new issue