Skip to content

Commit

Permalink
fix: remove fee form suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf committed Nov 25, 2021
1 parent 2500cb9 commit e2f2e2c
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions src/pages/sign-transaction/sign-transaction.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { memo, Suspense, useCallback } from 'react';
import React, { memo, useCallback } from 'react';
import { Formik } from 'formik';
import * as yup from 'yup';
import { Stack } from '@stacks/ui';
Expand Down Expand Up @@ -81,26 +81,24 @@ function SignTransactionBase(): JSX.Element | null {
{transactionRequest.txType === 'contract_call' && <ContractCallDetails />}
{transactionRequest.txType === 'token_transfer' && <StxTransferDetails />}
{transactionRequest.txType === 'smart_contract' && <ContractDeployDetails />}
<Suspense fallback={<></>}>
<Formik
initialValues={{ fee: '' }}
onSubmit={onSubmit}
validateOnChange={false}
validateOnBlur={false}
validateOnMount={false}
validationSchema={yup.object({
fee: feeSchema(),
})}
>
{() => (
<>
<FeeForm />
<SubmitAction />
<HighFeeDrawer />
</>
)}
</Formik>
</Suspense>
<Formik
initialValues={{ fee: '' }}
onSubmit={onSubmit}
validateOnChange={false}
validateOnBlur={false}
validateOnMount={false}
validationSchema={yup.object({
fee: feeSchema(),
})}
>
{() => (
<>
<FeeForm />
<SubmitAction />
<HighFeeDrawer />
</>
)}
</Formik>
</Stack>
</PopupContainer>
);
Expand Down

0 comments on commit e2f2e2c

Please sign in to comment.