From 56f1654b25c886faeb417490cced9c3a087208c1 Mon Sep 17 00:00:00 2001 From: heisenberg Date: Thu, 21 Sep 2023 13:21:32 +0800 Subject: [PATCH] feat: balance tooltip --- .../components/TokenDetailPopup/TokenDetail.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/ui/views/Dashboard/components/TokenDetailPopup/TokenDetail.tsx b/src/ui/views/Dashboard/components/TokenDetailPopup/TokenDetail.tsx index 18443158a6c..fbcd11d38c6 100644 --- a/src/ui/views/Dashboard/components/TokenDetailPopup/TokenDetail.tsx +++ b/src/ui/views/Dashboard/components/TokenDetailPopup/TokenDetail.tsx @@ -27,6 +27,7 @@ import { SWAP_SUPPORT_CHAINS } from '@/constant'; import { CustomizedButton } from './CustomizedButton'; import { BlockedButton } from './BlockedButton'; import { useRabbySelector } from '@/ui/store'; +import { TooltipWithMagnetArrow } from '@/ui/component/Tooltip/TooltipWithMagnetArrow'; const PAGE_COUNT = 10; const ellipsis = (text: string) => { @@ -228,12 +229,15 @@ const TokenDetail = ({ {getTokenSymbol(token)} {t('page.newAddress.hd.balance')}
-
- {splitNumberByStep((tokenWithAmount.amount || 0)?.toFixed(8))} -
+
+ {splitNumberByStep((tokenWithAmount.amount || 0)?.toFixed(8))} +
+