Skip to content

Commit

Permalink
SOV-2535: Redirect XUSD portfolio actions to Babelfish (#2555)
Browse files Browse the repository at this point in the history
Redirect XUSD portfolio actions to Babelfish

Co-authored-by: soulBit <[email protected]>
  • Loading branch information
tiltom and soulBit authored Aug 14, 2023
1 parent 7c64458 commit 477c54a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/app/components/UserAssets/components/BridgeLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ export const BridgeLink: React.FC<IBridgeLinkProps> = ({
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);
}
Expand Down
23 changes: 22 additions & 1 deletion src/app/components/UserAssets/components/UserAssetsTableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export const UserAssetsTableRow: React.FC<IUserAssetsTableRow> = ({
dataActionId={`portfolio-action-convert-${asset}`}
/>
)}
{[Asset.SOV, Asset.ETH, Asset.XUSD, Asset.BNB].includes(asset) && (
{[Asset.SOV, Asset.ETH, Asset.BNB].includes(asset) && (
<BridgeLink asset={asset} disableWithdrawal={!hasAnyTokens} />
)}
{asset === Asset.WRBTC && (
Expand All @@ -221,6 +221,27 @@ export const UserAssetsTableRow: React.FC<IUserAssetsTableRow> = ({
disabled={!hasAnyTokens}
/>
)}
{asset === Asset.XUSD && (
<>
<Button
text={t(translations.common.send)}
hrefExternal
href={BABELFISH_APP_LINK}
style={ButtonStyle.link}
size={ButtonSize.sm}
dataActionId={`portfolio-action-send-xusd`}
/>

<Button
text={t(translations.common.receive)}
hrefExternal
href={BABELFISH_APP_LINK}
style={ButtonStyle.link}
size={ButtonSize.sm}
dataActionId={`portfolio-action-receive-xusd`}
/>
</>
)}
</div>
</td>
</tr>
Expand Down

0 comments on commit 477c54a

Please sign in to comment.