mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
commit
733a2606c3
@ -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"
|
||||
|
@ -47,6 +47,7 @@ export default function PublishPage({
|
||||
|
||||
if (publishError) {
|
||||
toast.error(publishError)
|
||||
console.error(publishError)
|
||||
return null
|
||||
}
|
||||
|
||||
|
@ -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(() => {
|
||||
|
@ -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: '',
|
||||
|
Loading…
Reference in New Issue
Block a user