From 775e07767bc51938f377b693c752df56d6cec96e Mon Sep 17 00:00:00 2001 From: Hodor Date: Wed, 13 Nov 2024 19:04:02 +0800 Subject: [PATCH] fix: dbk chain bridge status (#2622) --- .../pages/Bridge/components/ActivityPopup.tsx | 41 ++++++++++++++----- .../views/Ecology/dbk-chain/utils/index.tsx | 2 + 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/src/ui/views/Ecology/dbk-chain/pages/Bridge/components/ActivityPopup.tsx b/src/ui/views/Ecology/dbk-chain/pages/Bridge/components/ActivityPopup.tsx index 238be61ede4..8a9641d43a5 100644 --- a/src/ui/views/Ecology/dbk-chain/pages/Bridge/components/ActivityPopup.tsx +++ b/src/ui/views/Ecology/dbk-chain/pages/Bridge/components/ActivityPopup.tsx @@ -84,18 +84,37 @@ const ActivityBridgeStatus = ({ } return (
-
{ - openInTab(getTxScanLink(chain.scanLink, item.tx_id)); - }} - > - -
- {t('page.ecology.dbk.bridge.ActivityPopup.status.withdraw')} + {status === 'withdraw-pending' ? ( +
{ + openInTab(getTxScanLink(chain.scanLink, item.tx_id)); + }} + > + +
+ {t('page.ecology.dbk.bridge.ActivityPopup.status.withdraw')} +
+
- -
+ ) : ( +
{ + openInTab(getTxScanLink(chain.scanLink, item.tx_id)); + }} + > + +
+ {t('page.ecology.dbk.bridge.ActivityPopup.status.withdraw')} +
+ +
+ )} {status === 'waiting-to-prove' ? (