mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
make publish form persistant
This commit is contained in:
parent
4750122351
commit
87263f6ca8
16
package-lock.json
generated
16
package-lock.json
generated
@ -14685,6 +14685,22 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"formik-persist": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/formik-persist/-/formik-persist-1.1.0.tgz",
|
||||
"integrity": "sha512-tZyyghHinnoqptYVD8vfkN8rg8sFKIuc1INFpuspTXffq1H8eeI1aYFiyoq2gNE1qIVJfPy+bzUItx/9qyO8Hw==",
|
||||
"requires": {
|
||||
"lodash.debounce": "^4.0.8",
|
||||
"react-fast-compare": "^2.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"react-fast-compare": {
|
||||
"version": "2.0.4",
|
||||
"resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz",
|
||||
"integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"forwarded": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz",
|
||||
|
@ -34,6 +34,7 @@
|
||||
"ethereum-blockies": "github:MyEtherWallet/blockies",
|
||||
"filesize": "^6.1.0",
|
||||
"formik": "^2.1.5",
|
||||
"formik-persist": "^1.1.0",
|
||||
"gatsby": "^2.24.3",
|
||||
"gatsby-image": "^2.4.13",
|
||||
"gatsby-plugin-manifest": "^2.4.18",
|
||||
|
@ -12,6 +12,7 @@ import { FormContent, FormFieldProps } from '../../../@types/Form'
|
||||
import { MetadataPublishForm } from '../../../@types/Metadata'
|
||||
import { File as FileMetadata } from '@oceanprotocol/lib/dist/node/ddo/interfaces/File'
|
||||
import { useSiteMetadata } from '../../../hooks/useSiteMetadata'
|
||||
import { Persist } from 'formik-persist'
|
||||
|
||||
const validationSchema = Yup.object().shape<MetadataPublishForm>({
|
||||
// ---- required fields ----
|
||||
@ -123,6 +124,7 @@ export default function PublishForm({
|
||||
>
|
||||
Submit
|
||||
</Button>
|
||||
<Persist name="ocean-publish-form" />
|
||||
</FormFormik>
|
||||
)}
|
||||
</Formik>
|
||||
|
Loading…
Reference in New Issue
Block a user