From e24b77e25e326a52470809b1e554f57df6e048e4 Mon Sep 17 00:00:00 2001 From: Roy <92044428+impelcrypto@users.noreply.github.com> Date: Tue, 14 Jan 2025 15:56:45 +0800 Subject: [PATCH] fix: updated warning message for the CCIP bridge (#1440) --- src/components/bridge/ccip/CcipBridge.vue | 12 +++++++++--- src/i18n/en-US/index.ts | 3 +++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/bridge/ccip/CcipBridge.vue b/src/components/bridge/ccip/CcipBridge.vue index 1c6d2c616..9a61c7248 100644 --- a/src/components/bridge/ccip/CcipBridge.vue +++ b/src/components/bridge/ccip/CcipBridge.vue @@ -135,9 +135,14 @@ -
+
- {{ $t('bridge.underMaintenance') }} + {{ $t('bridge.warningInvalidWallet') }} + +
+
+ + {{ $t('bridge.ccipUnderMaintenance') }}
@@ -255,7 +260,7 @@ export default defineComponent({ }, setup(props) { const { currentAccount } = useAccount(); - const { nativeTokenSymbol, isShibuyaEvm, isAstarEvm } = useNetworkInfo(); + const { nativeTokenSymbol, isShibuyaEvm, isAstarEvm, isH160 } = useNetworkInfo(); const store = useStore(); const isHandling = ref(false); const isLoading = computed(() => store.getters['general/isLoading']); @@ -350,6 +355,7 @@ export default defineComponent({ ccipBridgeTime, isApproveButtonDisabled, isBridgeButtonDisabled, + isH160, truncate, bridge, approve, diff --git a/src/i18n/en-US/index.ts b/src/i18n/en-US/index.ts index 55b8eb78e..d352627a0 100644 --- a/src/i18n/en-US/index.ts +++ b/src/i18n/en-US/index.ts @@ -1133,8 +1133,11 @@ export default { warningHighTraffic: 'High bridge traffic may delay withdrawal transactions up to 5 hours. We appreciate your patience.', warningHighTrafficMore: '(read more)', + warningInvalidWallet: 'Please connect your EVM wallet to use the bridge', underMaintenance: 'Astar zkEVM is currently under the maintenance. We apologize for any inconvenience.', + ccipUnderMaintenance: + 'CCIP bridge is currently under the maintenance. We apologize for any inconvenience.', modals: { highTraffic: { text1: