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

Commit

Permalink
Enable darwinia<>crab (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 authored Apr 16, 2024
1 parent 2dcde31 commit 31019e1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/components/transfer-v2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,20 +221,20 @@ function Component() {
]);

const alert = useMemo(() => {
if (
(sourceChain?.network === "darwinia-dvm" && targetChain?.network === "crab-dvm") ||
(sourceChain?.network === "crab-dvm" && targetChain?.network === "darwinia-dvm")
) {
return (
<div className="inline-flex flex-wrap items-center justify-center rounded-2xl bg-background p-2 lg:p-3">
<span className="text-center text-sm font-bold text-orange-400">
The bridge between Darwinia and Crab is undergoing maintenance and will reopen once upgrades are completed.
</span>
</div>
);
}
// if (
// (sourceChain?.network === "darwinia-dvm" && targetChain?.network === "crab-dvm") ||
// (sourceChain?.network === "crab-dvm" && targetChain?.network === "darwinia-dvm")
// ) {
// return (
// <div className="inline-flex flex-wrap items-center justify-center rounded-2xl bg-background p-2 lg:p-3">
// <span className="text-center text-sm font-bold text-orange-400">
// The bridge between Darwinia and Crab is undergoing maintenance and will reopen once upgrades are completed.
// </span>
// </div>
// );
// }
return null;
}, [sourceChain.network, targetChain.network]);
}, []);

return (
<>
Expand Down

0 comments on commit 31019e1

Please sign in to comment.