From d53446c0da5ff8a628167ccbad10103277dd89a4 Mon Sep 17 00:00:00 2001 From: guanbinrui Date: Thu, 23 Sep 2021 15:46:53 +0800 Subject: [PATCH] fix: gitcoin only works on mainnet --- packages/maskbook/src/plugins/Gitcoin/SNSAdaptor/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/maskbook/src/plugins/Gitcoin/SNSAdaptor/index.tsx b/packages/maskbook/src/plugins/Gitcoin/SNSAdaptor/index.tsx index 54bc1bfa1032..8e33f58ed757 100644 --- a/packages/maskbook/src/plugins/Gitcoin/SNSAdaptor/index.tsx +++ b/packages/maskbook/src/plugins/Gitcoin/SNSAdaptor/index.tsx @@ -1,4 +1,5 @@ import { Suspense, useMemo } from 'react' +import { ChainId } from '@masknet/web3-shared' import type { Plugin } from '@masknet/plugin-infra' import { SnackbarContent } from '@material-ui/core' import MaskbookPluginWrapper from '../../MaskbookPluginWrapper' @@ -9,6 +10,7 @@ import { base } from '../base' import { PLUGIN_NAME, PLUGIN_META_KEY } from '../constants' import { DonateDialog } from './DonateDialog' import { parseURL } from '../../../utils/utils' +import { EthereumChainBoundary } from '../../../web3/UI/EthereumChainBoundary' const isGitcoin = (x: string): boolean => /^https:\/\/gitcoin.co\/grants\/\d+/.test(x) @@ -41,7 +43,9 @@ function Renderer(props: React.PropsWithChildren<{ url: string }>) { return ( }> - + + + )