From f6b57d31e098e3df88076dff51dfba7ae69318e0 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Thu, 1 Sep 2022 10:45:00 -0500 Subject: [PATCH] Only render tooltip component if swap network is disabled --- .../app/wallet-overview/eth-overview.js | 21 ++++++++++-------- .../app/wallet-overview/token-overview.js | 22 +++++++++++-------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/ui/components/app/wallet-overview/eth-overview.js b/ui/components/app/wallet-overview/eth-overview.js index a9a018954fb2..1c389cea4fb2 100644 --- a/ui/components/app/wallet-overview/eth-overview.js +++ b/ui/components/app/wallet-overview/eth-overview.js @@ -165,15 +165,18 @@ const EthOverview = ({ className }) => { } }} label={t('swap')} - tooltipRender={(contents) => ( - - {contents} - - )} + tooltipRender={ + isSwapsChain + ? null + : (contents) => ( + + {contents} + + ) + } /> } diff --git a/ui/components/app/wallet-overview/token-overview.js b/ui/components/app/wallet-overview/token-overview.js index 95f93e61b248..3bb6dda96739 100644 --- a/ui/components/app/wallet-overview/token-overview.js +++ b/ui/components/app/wallet-overview/token-overview.js @@ -143,15 +143,19 @@ const TokenOverview = ({ className, token }) => { } }} label={t('swap')} - tooltipRender={(contents) => ( - - {contents} - - )} + tooltipRender={ + isSwapsChain + ? null + : (contents) => ( + + {contents} + + ) + } /> }