From fb241d225de897943f443222e0938c1add9fd08e Mon Sep 17 00:00:00 2001 From: alter-eggo Date: Tue, 17 Oct 2023 16:24:48 +0400 Subject: [PATCH] feat: add connect btn --- .../components/asset-row-grid.tsx | 18 ++++++++++++++++-- .../crypto-currency-asset-item.layout.tsx | 1 + 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/app/components/crypto-assets/components/asset-row-grid.tsx b/src/app/components/crypto-assets/components/asset-row-grid.tsx index ad4f6f8349e..b6110d2184e 100644 --- a/src/app/components/crypto-assets/components/asset-row-grid.tsx +++ b/src/app/components/crypto-assets/components/asset-row-grid.tsx @@ -5,14 +5,28 @@ interface AssetRowGridProps { balance: React.ReactNode; caption: React.ReactNode; usdBalance?: React.ReactNode; + connectBtn?: React.ReactNode; } -export function AssetRowGrid({ title, balance, caption, usdBalance }: AssetRowGridProps) { +export function AssetRowGrid({ + title, + balance, + caption, + usdBalance, + connectBtn, +}: AssetRowGridProps) { + const balanceItem = connectBtn ? ( + + {connectBtn} + + ) : ( + {balance} + ); return ( {title} - {balance} + {balanceItem} {caption} {usdBalance && {usdBalance}} diff --git a/src/app/components/crypto-assets/crypto-currency-asset/crypto-currency-asset-item.layout.tsx b/src/app/components/crypto-assets/crypto-currency-asset/crypto-currency-asset-item.layout.tsx index 9fb87ff9db9..81d57fcadeb 100644 --- a/src/app/components/crypto-assets/crypto-currency-asset/crypto-currency-asset-item.layout.tsx +++ b/src/app/components/crypto-assets/crypto-currency-asset/crypto-currency-asset-item.layout.tsx @@ -99,6 +99,7 @@ export const CryptoCurrencyAssetItemLayout = forwardRefWithAs( {additionalUsdBalanceInfo} } + connectBtn={connectBtn} /> {component}