From 5a1b1adc23cb1e475f963be5fb265a1b3cef42ba Mon Sep 17 00:00:00 2001 From: Enzo Vezzaro Date: Wed, 13 Apr 2022 10:19:39 -0400 Subject: [PATCH] clean up --- src/components/Publish/index.tsx | 40 ++++++++++++++------------------ 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/src/components/Publish/index.tsx b/src/components/Publish/index.tsx index 932930151..9525f0af7 100644 --- a/src/components/Publish/index.tsx +++ b/src/components/Publish/index.tsx @@ -1,4 +1,4 @@ -import React, { ReactElement, useState, useRef, useEffect } from 'react' +import React, { ReactElement, useState, useRef } from 'react' import { Form, Formik } from 'formik' import { initialPublishFeedback, initialValues } from './_constants' import { useAccountPurgatory } from '@hooks/useAccountPurgatory' @@ -14,13 +14,7 @@ import { Steps } from './Steps' import { FormPublishData, PublishFeedback } from './_types' import { useUserPreferences } from '@context/UserPreferences' import useNftFactory from '@hooks/contracts/useNftFactory' -import { - Nft, - getHash, - ProviderInstance, - LoggerInstance, - DDO -} from '@oceanprotocol/lib' +import { ProviderInstance, LoggerInstance, DDO } from '@oceanprotocol/lib' import { getOceanConfig } from '@utils/ocean' import { validationSchema } from './_validation' import { useAbortController } from '@hooks/useAbortController' @@ -285,20 +279,22 @@ export default function PublishPage({ await handleSubmit(values) }} > - {({ values }) => ( - <> - } - description={content.description} - /> -
- - - - - {debug && } - - )} + {({ values }) => { + return ( + <> + } + description={content.description} + /> +
+ + + + + {debug && } + + ) + }} ) }