mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-29 00:57:50 +02: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 { useOcean, usePricing } from '@oceanprotocol/react'
|
||||||
import EtherscanLink from '../../atoms/EtherscanLink'
|
import EtherscanLink from '../../atoms/EtherscanLink'
|
||||||
import Bookmark from './Bookmark'
|
import Bookmark from './Bookmark'
|
||||||
|
import { accountTruncate } from '../../../utils/wallet'
|
||||||
|
|
||||||
export interface AssetContentProps {
|
export interface AssetContentProps {
|
||||||
metadata: MetadataMarket
|
metadata: MetadataMarket
|
||||||
|
@ -38,7 +39,9 @@ export default function AssetContent({
|
||||||
|
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
<aside className={styles.meta}>
|
<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}>
|
<p className={styles.datatoken}>
|
||||||
<EtherscanLink
|
<EtherscanLink
|
||||||
|
@ -53,6 +56,16 @@ export default function AssetContent({
|
||||||
</EtherscanLink>
|
</EtherscanLink>
|
||||||
</p>
|
</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 && (
|
{metadata?.additionalInformation?.categories?.length && (
|
||||||
<p>
|
<p>
|
||||||
<Link
|
<Link
|
||||||
|
|
Loading…
Reference in New Issue
Block a user