mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
merge feature/v4 into feature/v4-c2d
This commit is contained in:
commit
dff4a0ca1c
@ -105,7 +105,7 @@ export default function FormEditMetadata({
|
|||||||
}
|
}
|
||||||
{...field}
|
{...field}
|
||||||
component={Input}
|
component={Input}
|
||||||
prefix={field.name === 'price' && oceanConfig.oceanTokenSymbol}
|
prefix={field.name === 'price' && oceanConfig?.oceanTokenSymbol}
|
||||||
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
||||||
handleFieldChange(e, field)
|
handleFieldChange(e, field)
|
||||||
}
|
}
|
||||||
|
@ -37,13 +37,17 @@ export default function Edit({ uri }: { uri: string }): ReactElement {
|
|||||||
}
|
}
|
||||||
].filter((tab) => tab !== undefined)
|
].filter((tab) => tab !== undefined)
|
||||||
|
|
||||||
return asset && asset?.accessDetails && accountId === owner ? (
|
return asset &&
|
||||||
|
asset?.accessDetails &&
|
||||||
|
accountId?.toLowerCase() === owner?.toLowerCase() ? (
|
||||||
<Page title={pageTitle} noPageHeader uri={uri}>
|
<Page title={pageTitle} noPageHeader uri={uri}>
|
||||||
<div className={styles.container}>
|
<div className={styles.container}>
|
||||||
<Tabs items={tabs} defaultIndex={0} className={styles.edit} />
|
<Tabs items={tabs} defaultIndex={0} className={styles.edit} />
|
||||||
</div>
|
</div>
|
||||||
</Page>
|
</Page>
|
||||||
) : asset && asset?.accessDetails && accountId !== owner ? (
|
) : asset &&
|
||||||
|
asset?.accessDetails &&
|
||||||
|
accountId?.toLowerCase() !== owner?.toLowerCase() ? (
|
||||||
<Page title={pageTitle} noPageHeader uri={uri}>
|
<Page title={pageTitle} noPageHeader uri={uri}>
|
||||||
<Alert
|
<Alert
|
||||||
title="Edit action available only to asset owner"
|
title="Edit action available only to asset owner"
|
||||||
|
Loading…
Reference in New Issue
Block a user