add env var to toggle gitcoin grants

This commit is contained in:
apoorvlathey
2022-09-24 16:17:22 +05:30
parent f0ad862137
commit b7c2602502
2 changed files with 29 additions and 11 deletions

View File

@@ -1 +1,2 @@
REACT_APP_INFURA_KEY=
REACT_APP_INFURA_KEY=
REACT_APP_GITCOIN_GRANTS_ACTIVE=

View File

@@ -36,16 +36,33 @@ function Footer() {
<Stack direction={{ base: "column", md: "row" }}>
<Box>Found the project helpful?</Box>
<HStack>
<Text>Support it on</Text>
<Link
href="https://gitcoin.co/grants/3613/impersonator"
isExternal
>
<HStack fontWeight="bold" textDecor="underline">
<Text>Gitcoin Grants</Text>
<ExternalLinkIcon />
</HStack>
</Link>
{process.env.REACT_APP_GITCOIN_GRANTS_ACTIVE === "true" ? (
<>
<Text>Support it on</Text>
<Link
href="https://gitcoin.co/grants/3613/impersonator"
isExternal
>
<HStack fontWeight="bold" textDecor="underline">
<Text>Gitcoin Grants</Text>
<ExternalLinkIcon />
</HStack>
</Link>
</>
) : (
<>
<Text>Support at</Text>
<Link
href="https://etherscan.io/address/apoorv.eth"
isExternal
>
<HStack fontWeight="bold" textDecor="underline">
<Text>apoorv.eth</Text>
<ExternalLinkIcon />
</HStack>
</Link>
</>
)}
</HStack>
</Stack>
</Alert>