forked from cerc-io/laconic-console
lint
This commit is contained in:
parent
dc0651a1dd
commit
882d480abb
@ -52,8 +52,12 @@ const AppRecords = () => {
|
|||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHead>
|
</TableHead>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{appData.sort(sorter).map(({ id, names, createTime, attributes: { name: displayName, description, version,
|
{appData.sort(sorter).map(({
|
||||||
versionUrl, repositoryVersion, repository, homepage, package: packageLink } }) => {
|
id, names, createTime, attributes: {
|
||||||
|
name: displayName, description, version,
|
||||||
|
versionUrl, repositoryVersion, repository, homepage, package: packageLink
|
||||||
|
}
|
||||||
|
}) => {
|
||||||
const url = repository || homepage;
|
const url = repository || homepage;
|
||||||
|
|
||||||
// If this is a GitHub repo, it is trivial to construct the URL from the base repository and version.
|
// If this is a GitHub repo, it is trivial to construct the URL from the base repository and version.
|
||||||
@ -69,16 +73,14 @@ const AppRecords = () => {
|
|||||||
<TableCell monospace>
|
<TableCell monospace>
|
||||||
{versionUrl
|
{versionUrl
|
||||||
? <Link href={versionUrl}>{version}</Link>
|
? <Link href={versionUrl}>{version}</Link>
|
||||||
: version
|
: version}
|
||||||
}
|
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
{displayName || description}
|
{displayName || description}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
{url &&
|
{url &&
|
||||||
<Link href={url} target={url}>{url}</Link>
|
<Link href={url} target={url}>{url}</Link>}
|
||||||
}
|
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>{moment.utc(createTime).fromNow()}</TableCell>
|
<TableCell>{moment.utc(createTime).fromNow()}</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
|
Loading…
Reference in New Issue
Block a user