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

fix publish form submit

This commit is contained in:
Matthias Kretschmann 2020-10-21 15:03:20 +02:00
parent f10859dfad
commit 770d2a5701
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -1,7 +1,7 @@
import React, { ReactElement, useEffect, FormEvent } from 'react'
import styles from './FormPublish.module.css'
import { useOcean } from '@oceanprotocol/react'
import { useFormikContext, Field } from 'formik'
import { useFormikContext, Field, Form } from 'formik'
import Input from '../../atoms/Input'
import Button from '../../atoms/Button'
import { FormContent, FormFieldProps } from '../../../@types/Form'
@ -37,7 +37,7 @@ export default function FormPublish({
}
return (
<form
<Form
className={styles.form}
// do we need this?
onChange={() => status === 'empty' && setStatus(null)}
@ -61,6 +61,6 @@ export default function FormPublish({
</Button>
)}
</footer>
</form>
</Form>
)
}