From 477c54a0b7a273d3b466568cc0473b2c9f34c104 Mon Sep 17 00:00:00 2001 From: tiltom Date: Mon, 14 Aug 2023 15:20:38 +0200 Subject: [PATCH] SOV-2535: Redirect XUSD portfolio actions to Babelfish (#2555) Redirect XUSD portfolio actions to Babelfish Co-authored-by: soulBit --- .../UserAssets/components/BridgeLink.tsx | 4 ---- .../components/UserAssetsTableRow.tsx | 23 ++++++++++++++++++- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/app/components/UserAssets/components/BridgeLink.tsx b/src/app/components/UserAssets/components/BridgeLink.tsx index c0320bed39..2dc2c1ff32 100644 --- a/src/app/components/UserAssets/components/BridgeLink.tsx +++ b/src/app/components/UserAssets/components/BridgeLink.tsx @@ -51,10 +51,6 @@ export const BridgeLink: React.FC = ({ return type === CROSSCHAIN_TYPE.DEPOSIT ? t(translations.maintenance.bridgeBnbDeposit) : t(translations.maintenance.bridgeBnbWithdraw); - case Asset.XUSD: - return type === CROSSCHAIN_TYPE.DEPOSIT - ? t(translations.maintenance.bridgeXusdDeposit) - : t(translations.maintenance.bridgeXusdWithdraw); default: return t(translations.maintenance.bridge); } diff --git a/src/app/components/UserAssets/components/UserAssetsTableRow.tsx b/src/app/components/UserAssets/components/UserAssetsTableRow.tsx index 92f12f93a0..f5a395d71c 100644 --- a/src/app/components/UserAssets/components/UserAssetsTableRow.tsx +++ b/src/app/components/UserAssets/components/UserAssetsTableRow.tsx @@ -209,7 +209,7 @@ export const UserAssetsTableRow: React.FC = ({ dataActionId={`portfolio-action-convert-${asset}`} /> )} - {[Asset.SOV, Asset.ETH, Asset.XUSD, Asset.BNB].includes(asset) && ( + {[Asset.SOV, Asset.ETH, Asset.BNB].includes(asset) && ( )} {asset === Asset.WRBTC && ( @@ -221,6 +221,27 @@ export const UserAssetsTableRow: React.FC = ({ disabled={!hasAnyTokens} /> )} + {asset === Asset.XUSD && ( + <> +