From b7c26025021a35dcfdcb5698a24005f0e475e4ba Mon Sep 17 00:00:00 2001 From: apoorvlathey Date: Sat, 24 Sep 2022 16:17:22 +0530 Subject: [PATCH] add env var to toggle gitcoin grants --- .env.sample | 3 ++- src/components/Footer.tsx | 37 +++++++++++++++++++++++++++---------- 2 files changed, 29 insertions(+), 11 deletions(-) diff --git a/.env.sample b/.env.sample index 61aa907..d4ff8a1 100644 --- a/.env.sample +++ b/.env.sample @@ -1 +1,2 @@ -REACT_APP_INFURA_KEY= \ No newline at end of file +REACT_APP_INFURA_KEY= +REACT_APP_GITCOIN_GRANTS_ACTIVE= \ No newline at end of file diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index b68218f..24902ba 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -36,16 +36,33 @@ function Footer() { Found the project helpful? - Support it on - - - Gitcoin Grants - - - + {process.env.REACT_APP_GITCOIN_GRANTS_ACTIVE === "true" ? ( + <> + Support it on + + + Gitcoin Grants + + + + + ) : ( + <> + Support at + + + apoorv.eth + + + + + )}