diff --git a/components/Body/NotificationBar.tsx b/components/Body/NotificationBar.tsx index d3ad3d4..67b4d39 100644 --- a/components/Body/NotificationBar.tsx +++ b/components/Body/NotificationBar.tsx @@ -18,15 +18,15 @@ const CLOSED_KEY = "new-ui-notif-closed"; function NotificationBar() { const isClosed = localStorage.getItem(CLOSED_KEY); - const [isVisible, setIsVisible] = useState( - isClosed === "true" ? false : true - ); + // const [isVisible, setIsVisible] = useState( + // isClosed === "true" ? false : true + // ); - useEffect(() => { - if (!isVisible) { - localStorage.setItem(CLOSED_KEY, "true"); - } - }, [isVisible]); + // useEffect(() => { + // if (!isVisible) { + // localStorage.setItem(CLOSED_KEY, "true"); + // } + // }, [isVisible]); // const [donor, setDonor] = useState(); @@ -41,21 +41,52 @@ function NotificationBar() { // }); // }, []); - return isVisible ? ( + return process.env.NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE === "true" ? (
- - {" "} - New UI is here - + + + Support on + + + Gitcoin Grants + + + +
- setIsVisible(false)} - /> + /> */}
) : null; } diff --git a/components/Body/index.tsx b/components/Body/index.tsx index dffaffd..b6f72cf 100644 --- a/components/Body/index.tsx +++ b/components/Body/index.tsx @@ -640,7 +640,9 @@ function Body() { return ( <> - {/* */} + {process.env.NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE === "true" && ( + + )} diff --git a/components/Footer.tsx b/components/Footer.tsx index dee8df0..e278980 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -100,102 +100,100 @@ function Footer() {
Found the project helpful?
- {process.env.NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE === "true" ? ( - <> - Support it on - - - Gitcoin Grants - - - - - ) : ( - <> - - - - - Support - - - -
- -
- - Select amount to donate: - - - {["0.001", "0.005", "0.01"].map((value, i) => ( - -
- -
-
- ))} -
-
or
- - setDonateValue(e.target.value)} - isDisabled={!isConnected || chain?.unsupported} - /> - - Ξ - - -
- -
-
-
-
-
- - )} + + + + + Support + + + {process.env.NEXT_PUBLIC_GITCOIN_GRANTS_ACTIVE === + "true" && ( +
+ + Support on + + + Gitcoin Grants + + + + +
+ )} + +
+ +
+ + Select amount to donate: + + + {["0.001", "0.005", "0.01"].map((value, i) => ( + +
+ +
+
+ ))} +
+
or
+ + setDonateValue(e.target.value)} + isDisabled={!isConnected || chain?.unsupported} + /> + + Ξ + + +
+ +
+
+
+
+