Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
refactor: maintenance darwinia<>crab (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 authored Mar 28, 2024
1 parent 23d5f9c commit d4ad7d2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ export default function Transfer() {
<span>&nbsp;{`to route to Darwinia or Ethereum instead.`}</span>
</div>
);
} else if (
(sourceChain?.network === "darwinia-dvm" && targetChain?.network === "crab-dvm") ||
(sourceChain?.network === "crab-dvm" && targetChain?.network === "darwinia-dvm")
) {
return (
<div className="flex flex-wrap items-center justify-center rounded-middle bg-inner p-middle text-center text-sm font-medium text-app-orange">
<span>
Cross-chain transfers between Darwinia and Crab are under maintenance, and will be reopened after the
upgrade is completed.
</span>
</div>
);
}
return null;
}, [sourceChain?.network, targetChain?.network]);
Expand Down

0 comments on commit d4ad7d2

Please sign in to comment.