1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-14 17:24:51 +01:00

package updates

This commit is contained in:
Matthias Kretschmann 2020-10-21 15:45:38 +02:00
parent 9099c8ee33
commit cc2474419b
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 11 additions and 12 deletions

14
package-lock.json generated
View File

@ -4462,9 +4462,9 @@
"integrity": "sha512-LING+GvW37I0L40rZdPCZ1SvcZurDSGGhT0WOVPNO8oyh2C3bXModDBNE4+gCFa8pTbQBOc4ot1/Zoj9PfT/zA==" "integrity": "sha512-LING+GvW37I0L40rZdPCZ1SvcZurDSGGhT0WOVPNO8oyh2C3bXModDBNE4+gCFa8pTbQBOc4ot1/Zoj9PfT/zA=="
}, },
"@oceanprotocol/lib": { "@oceanprotocol/lib": {
"version": "0.7.0", "version": "0.7.1",
"resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.7.0.tgz", "resolved": "https://registry.npmjs.org/@oceanprotocol/lib/-/lib-0.7.1.tgz",
"integrity": "sha512-XRQ58wWbohtz/buug0498EbpBchxrPwYBh8f/Iln1Vwh6h3IfLWvznmg4gNg/H1AE3qdPsuVcBJwYb0Bos/yGQ==", "integrity": "sha512-vwwyFrygmH08gWA3OQESG7ZggEX0wfgnAYK9s9xWKhwi0IiRbNu3a25joCebXlENoEUIF7QRChBFeAlqV2OW0w==",
"requires": { "requires": {
"@ethereum-navigator/navigator": "^0.5.0", "@ethereum-navigator/navigator": "^0.5.0",
"@oceanprotocol/contracts": "^0.5.6", "@oceanprotocol/contracts": "^0.5.6",
@ -4479,11 +4479,11 @@
} }
}, },
"@oceanprotocol/react": { "@oceanprotocol/react": {
"version": "0.3.0", "version": "0.3.1",
"resolved": "https://registry.npmjs.org/@oceanprotocol/react/-/react-0.3.0.tgz", "resolved": "https://registry.npmjs.org/@oceanprotocol/react/-/react-0.3.1.tgz",
"integrity": "sha512-A9D16lx9s6uH5JhzW2f2y/BBxp9+P9Pne5B6HJf6dNf5BJUTC/5itQC8O852YdJRw7CtsM/w50lTL+5Uu9PIzw==", "integrity": "sha512-RT7eDkjWJcRRbXZJ+WdxpZNKg3KRVUdxp6ha9Cu8GKMzJVCFkF6y1EDkX/EszCtUFpHlDgwi8+WV25ITgXQNPw==",
"requires": { "requires": {
"@oceanprotocol/lib": "^0.7.0", "@oceanprotocol/lib": "^0.7.1",
"axios": "^0.20.0", "axios": "^0.20.0",
"decimal.js": "^10.2.1", "decimal.js": "^10.2.1",
"web3": "^1.3.0", "web3": "^1.3.0",

View File

@ -22,8 +22,8 @@
"@coingecko/cryptoformat": "^0.4.2", "@coingecko/cryptoformat": "^0.4.2",
"@loadable/component": "5.13.1", "@loadable/component": "5.13.1",
"@oceanprotocol/art": "^3.0.0", "@oceanprotocol/art": "^3.0.0",
"@oceanprotocol/lib": "^0.7.0", "@oceanprotocol/lib": "^0.7.1",
"@oceanprotocol/react": "^0.3.0", "@oceanprotocol/react": "^0.3.1",
"@oceanprotocol/typographies": "^0.1.0", "@oceanprotocol/typographies": "^0.1.0",
"@sindresorhus/slugify": "^1.0.0", "@sindresorhus/slugify": "^1.0.0",
"@tippyjs/react": "^4.2.0", "@tippyjs/react": "^4.2.0",

View File

@ -27,9 +27,8 @@ export default function AssetContent({
const { accountId } = useOcean() const { accountId } = useOcean()
const isOwner = accountId === ddo.publicKey[0].owner const isOwner = accountId === ddo.publicKey[0].owner
// TODO: change type overwrite const hasNoPrice = ddo.price.type === ''
const hasPrice = (ddo.price.type as any) !== '' const showPricing = isOwner && hasNoPrice
const showPricing = isOwner && !hasPrice
return ( return (
<article className={styles.grid}> <article className={styles.grid}>