1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

switch to datePublished in asset history

This commit is contained in:
Matthias Kretschmann 2019-04-04 14:14:09 +02:00
parent 67f6d3f508
commit 7df93c89ad
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 6 additions and 3 deletions

View File

@ -12,8 +12,11 @@ const AssetLink = ({ asset, list }: { asset: any; list?: boolean }) => {
<article className={styles.assetList}>
<Link to={`/asset/${asset.id}`}>
<h1>{base.name}</h1>
<div className={styles.date} title={base.dateCreated}>
{moment(base.dateCreated, 'YYYYMMDD').fromNow()}
<div
className={styles.date}
title={`Published on ${base.datePublished}`}
>
{moment(base.datePublished, 'YYYYMMDD').fromNow()}
</div>
</Link>
</article>

View File

@ -52,7 +52,7 @@ export default class AssetsUser extends PureComponent<
<div className={styles.assetsUser}>
{this.props.recent && (
<h2 className={styles.subTitle}>
Your Latest Data Sets
Your Latest Published Data Sets
</h2>
)}