mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
various fixes
This commit is contained in:
parent
7b4e07ffd0
commit
bb43d8f8a3
@ -10,13 +10,14 @@ export default function MetaSecondary({
|
|||||||
}: {
|
}: {
|
||||||
metadata: MetadataMarket
|
metadata: MetadataMarket
|
||||||
}): ReactElement {
|
}): ReactElement {
|
||||||
|
console.log(metadata)
|
||||||
return (
|
return (
|
||||||
<aside className={styles.metaSecondary}>
|
<aside className={styles.metaSecondary}>
|
||||||
{metadata?.additionalInformation?.tags.length > 0 && (
|
{metadata?.additionalInformation?.tags?.length > 0 && (
|
||||||
<Tags items={metadata?.additionalInformation?.tags} />
|
<Tags items={metadata?.additionalInformation?.tags} />
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{metadata?.additionalInformation?.links.length && (
|
{metadata?.additionalInformation?.links?.length && (
|
||||||
<div className={styles.samples}>
|
<div className={styles.samples}>
|
||||||
<MetaItem
|
<MetaItem
|
||||||
title="Sample Data"
|
title="Sample Data"
|
||||||
|
@ -47,6 +47,7 @@ export default function PublishPage({
|
|||||||
|
|
||||||
if (publishError) {
|
if (publishError) {
|
||||||
toast.error(publishError)
|
toast.error(publishError)
|
||||||
|
console.error(publishError)
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,19 +6,7 @@ export function NetworkMonitor() {
|
|||||||
const { connect, web3Provider } = useOcean()
|
const { connect, web3Provider } = useOcean()
|
||||||
|
|
||||||
const handleNetworkChanged = (chainId: number) => {
|
const handleNetworkChanged = (chainId: number) => {
|
||||||
// temp hack
|
const config = getOceanConfig(chainId)
|
||||||
let network = ''
|
|
||||||
switch (chainId) {
|
|
||||||
case 1: {
|
|
||||||
network = 'mainnet'
|
|
||||||
break
|
|
||||||
}
|
|
||||||
case 4: {
|
|
||||||
network = 'rinkeby'
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const config = getOceanConfig(network)
|
|
||||||
connect(config)
|
connect(config)
|
||||||
}
|
}
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -35,7 +35,8 @@ export const initialValues: MetadataPublishForm = {
|
|||||||
type: 'fixed',
|
type: 'fixed',
|
||||||
tokensToMint: 1,
|
tokensToMint: 1,
|
||||||
weightOnDataToken: '9', // 90% on data token
|
weightOnDataToken: '9', // 90% on data token
|
||||||
liquidityProviderFee: '0.1' // in %
|
liquidityProviderFee: '0.1', // in %
|
||||||
|
price: 1
|
||||||
},
|
},
|
||||||
files: '',
|
files: '',
|
||||||
description: '',
|
description: '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user