diff --git a/src/app/components/bitcoin-contract-entry-point/bitcoin-contract-entry-point-layout.tsx b/src/app/components/bitcoin-contract-entry-point/bitcoin-contract-entry-point-layout.tsx index e45c3a21295..f973cca1d3d 100644 --- a/src/app/components/bitcoin-contract-entry-point/bitcoin-contract-entry-point-layout.tsx +++ b/src/app/components/bitcoin-contract-entry-point/bitcoin-contract-entry-point-layout.tsx @@ -1,5 +1,4 @@ import { Flex, StackProps } from '@stacks/ui'; -import { forwardRefWithAs } from '@stacks/ui-core'; import { CryptoAssetSelectors } from '@tests/selectors/crypto-asset.selectors'; import { HStack } from 'leather-styles/jsx'; @@ -21,43 +20,41 @@ interface BitcoinContractEntryPointLayoutProps extends StackProps { isLoading?: boolean; onClick: () => void; } -export const BitcoinContractEntryPointLayout = forwardRefWithAs( - (props: BitcoinContractEntryPointLayoutProps) => { - const { balance, caption, icon, usdBalance, isLoading, onClick } = props; +export function BitcoinContractEntryPointLayout(props: BitcoinContractEntryPointLayoutProps) { + const { balance, caption, icon, usdBalance, isLoading, onClick } = props; - const amount = balance.decimals - ? ftDecimals(balance.amount, balance.decimals) - : balance.amount.toString(); - const dataTestId = CryptoAssetSelectors.CryptoAssetListItem.replace( - '{symbol}', - balance.symbol.toLowerCase() - ); - const formattedBalance = formatBalance(amount); + const amount = balance.decimals + ? ftDecimals(balance.amount, balance.decimals) + : balance.amount.toString(); + const dataTestId = CryptoAssetSelectors.CryptoAssetListItem.replace( + '{symbol}', + balance.symbol.toLowerCase() + ); + const formattedBalance = formatBalance(amount); - return ( - - - - {'Bitcoin Contracts'} - + + + {'Bitcoin Contracts'} + + - - {isLoading ? : formattedBalance.value} - - - - - {caption} - {isLoading ? '' : {usdBalance}} - - - - ); - } -); + {isLoading ? : formattedBalance.value} + + + + + {caption} + {isLoading ? '' : {usdBalance}} + + + + ); +}