mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-15 01:34:57 +01:00
datatoken info as part of validation schema
This commit is contained in:
parent
d85f6c0777
commit
0c3afad2cd
@ -10,7 +10,6 @@ export default function MetaSecondary({
|
||||
}: {
|
||||
metadata: MetadataMarket
|
||||
}): ReactElement {
|
||||
console.log(metadata)
|
||||
return (
|
||||
<aside className={styles.metaSecondary}>
|
||||
{metadata?.additionalInformation?.tags?.length > 0 && (
|
||||
|
@ -19,7 +19,13 @@ export const validationSchema = Yup.object().shape<MetadataPublishForm>({
|
||||
liquidityProviderFee: Yup.number()
|
||||
.min(0.1, 'Must be more or equal to 0.1')
|
||||
.max(0.9, 'Must be less or equal to 0.9')
|
||||
.required('Required')
|
||||
.required('Required'),
|
||||
datatoken: Yup.object()
|
||||
.shape({
|
||||
name: Yup.string(),
|
||||
symbol: Yup.string()
|
||||
})
|
||||
.nullable()
|
||||
})
|
||||
.required('Required'),
|
||||
files: Yup.array<FileMetadata>().required('Required').nullable(),
|
||||
|
Loading…
Reference in New Issue
Block a user