diff --git a/src/components/transfer-v2.tsx b/src/components/transfer-v2.tsx index 10d0e785..81a10ecb 100644 --- a/src/components/transfer-v2.tsx +++ b/src/components/transfer-v2.tsx @@ -220,6 +220,22 @@ function Component() { refreshAllowance, ]); + const alert = useMemo(() => { + if ( + (sourceChain?.network === "darwinia-dvm" && targetChain?.network === "crab-dvm") || + (sourceChain?.network === "crab-dvm" && targetChain?.network === "darwinia-dvm") + ) { + return ( +
+ + The bridge between Darwinia and Crab is undergoing maintenance and will reopen once upgrades are completed. + +
+ ); + } + return null; + }, [sourceChain.network, targetChain.network]); + return ( <>
@@ -261,20 +277,22 @@ function Component() { onChange={setAmount} onRefresh={refreshBalance} /> - + {alert ?? ( + + )}