mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix publish form submit
This commit is contained in:
parent
f10859dfad
commit
770d2a5701
@ -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>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user