1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

Merge pull request #85 from oceanprotocol/fix/sampleFile

various fixes
This commit is contained in:
mihaisc 2020-09-21 17:43:39 +03:00 committed by GitHub
commit 733a2606c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 16 deletions

View File

@ -10,13 +10,14 @@ export default function MetaSecondary({
}: {
metadata: MetadataMarket
}): ReactElement {
console.log(metadata)
return (
<aside className={styles.metaSecondary}>
{metadata?.additionalInformation?.tags.length > 0 && (
{metadata?.additionalInformation?.tags?.length > 0 && (
<Tags items={metadata?.additionalInformation?.tags} />
)}
{metadata?.additionalInformation?.links.length && (
{metadata?.additionalInformation?.links?.length && (
<div className={styles.samples}>
<MetaItem
title="Sample Data"

View File

@ -47,6 +47,7 @@ export default function PublishPage({
if (publishError) {
toast.error(publishError)
console.error(publishError)
return null
}

View File

@ -6,19 +6,7 @@ export function NetworkMonitor() {
const { connect, web3Provider } = useOcean()
const handleNetworkChanged = (chainId: number) => {
// temp hack
let network = ''
switch (chainId) {
case 1: {
network = 'mainnet'
break
}
case 4: {
network = 'rinkeby'
break
}
}
const config = getOceanConfig(network)
const config = getOceanConfig(chainId)
connect(config)
}
useEffect(() => {

View File

@ -35,7 +35,8 @@ export const initialValues: MetadataPublishForm = {
type: 'fixed',
tokensToMint: 1,
weightOnDataToken: '9', // 90% on data token
liquidityProviderFee: '0.1' // in %
liquidityProviderFee: '0.1', // in %
price: 1
},
files: '',
description: '',