mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +01:00
output owner on asset details (#180)
This commit is contained in:
parent
24cd36b2be
commit
8b3f16fac9
@ -12,6 +12,7 @@ import Pricing from './Pricing'
|
||||
import { useOcean, usePricing } from '@oceanprotocol/react'
|
||||
import EtherscanLink from '../../atoms/EtherscanLink'
|
||||
import Bookmark from './Bookmark'
|
||||
import { accountTruncate } from '../../../utils/wallet'
|
||||
|
||||
export interface AssetContentProps {
|
||||
metadata: MetadataMarket
|
||||
@ -38,7 +39,9 @@ export default function AssetContent({
|
||||
|
||||
<div className={styles.content}>
|
||||
<aside className={styles.meta}>
|
||||
<p className={styles.author}>{metadata?.main.author}</p>
|
||||
<p className={styles.author} title="Author">
|
||||
{metadata?.main.author}
|
||||
</p>
|
||||
|
||||
<p className={styles.datatoken}>
|
||||
<EtherscanLink
|
||||
@ -53,6 +56,16 @@ export default function AssetContent({
|
||||
</EtherscanLink>
|
||||
</p>
|
||||
|
||||
<p className={styles.datatoken} title={ddo.publicKey[0].owner}>
|
||||
Published by{' '}
|
||||
<EtherscanLink
|
||||
networkId={networkId}
|
||||
path={`address/${ddo.publicKey[0].owner}`}
|
||||
>
|
||||
{accountTruncate(ddo.publicKey[0].owner)}
|
||||
</EtherscanLink>
|
||||
</p>
|
||||
|
||||
{metadata?.additionalInformation?.categories?.length && (
|
||||
<p>
|
||||
<Link
|
||||
|
Loading…
Reference in New Issue
Block a user