From f6685e4beab7e06f3d9ec9b181f39856da15912d Mon Sep 17 00:00:00 2001 From: tomasklim Date: Wed, 28 Feb 2024 10:40:59 +0100 Subject: [PATCH] fixup! feat(eth-staking): update account staked balance ui --- .../suite/src/actions/suite/__fixtures__/suiteActions.ts | 1 + .../UserContextModal/ClaimModal/ClaimEthForm.tsx | 2 +- .../UnstakeModal/UnstakeEthForm/UnstakeEthForm.tsx | 2 +- suite-common/wallet-types/src/stakeForm.ts | 7 +++---- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/suite/src/actions/suite/__fixtures__/suiteActions.ts b/packages/suite/src/actions/suite/__fixtures__/suiteActions.ts index 4909c1dffbda..f87fcf93349f 100644 --- a/packages/suite/src/actions/suite/__fixtures__/suiteActions.ts +++ b/packages/suite/src/actions/suite/__fixtures__/suiteActions.ts @@ -235,6 +235,7 @@ const initialRun = [ dashboardAssetsGridMode: true, showDashboardT2B1PromoBanner: false, showSettingsDesktopAppPromoBanner: true, + stakeEthBannerClosed: false, }, }, }, diff --git a/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/ClaimModal/ClaimEthForm.tsx b/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/ClaimModal/ClaimEthForm.tsx index 9b069dbf0493..9f4c2d0b6b54 100644 --- a/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/ClaimModal/ClaimEthForm.tsx +++ b/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/ClaimModal/ClaimEthForm.tsx @@ -90,7 +90,7 @@ export const ClaimEthForm = () => { /> {errors[CRYPTO_INPUT] && ( - {errors[CRYPTO_INPUT]?.message} + {errors[CRYPTO_INPUT]?.message} )} diff --git a/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/UnstakeModal/UnstakeEthForm/UnstakeEthForm.tsx b/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/UnstakeModal/UnstakeEthForm/UnstakeEthForm.tsx index 32e5821adb51..92d1edd7bf42 100644 --- a/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/UnstakeModal/UnstakeEthForm/UnstakeEthForm.tsx +++ b/packages/suite/src/components/suite/modals/ReduxModal/UserContextModal/UnstakeModal/UnstakeEthForm/UnstakeEthForm.tsx @@ -84,7 +84,7 @@ export const UnstakeEthForm = () => { {errors[CRYPTO_INPUT] && ( - + {errors[CRYPTO_INPUT]?.message} )} diff --git a/suite-common/wallet-types/src/stakeForm.ts b/suite-common/wallet-types/src/stakeForm.ts index 1259a5ba8200..a4eee530530e 100644 --- a/suite-common/wallet-types/src/stakeForm.ts +++ b/suite-common/wallet-types/src/stakeForm.ts @@ -1,9 +1,8 @@ -import { UseFormReturn } from 'react-hook-form'; +import { UseFormReturn, FormState as ReactHookFormState } from 'react-hook-form'; -import { FormState as ReactHookFormState } from 'react-hook-form/dist/types/form'; - -import { FeeLevel, Network } from '@trezor/connect'; +import { FeeLevel } from '@trezor/connect'; import { FiatCurrencyCode } from '@suite-common/suite-config'; +import { Network } from '@suite-common/wallet-config'; import { Output, PrecomposedLevels, RbfTransactionParams } from './transaction'; import { FormOptions } from './sendForm';