From 3ae0b5515bc68c3340d5fff00e0af825a2aaa59b Mon Sep 17 00:00:00 2001 From: bijomathewjose Date: Sun, 3 Mar 2024 10:46:53 +0530 Subject: [PATCH 1/2] Donation Button Integration --- src/Pages/Home/Home.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Pages/Home/Home.jsx b/src/Pages/Home/Home.jsx index 41608cb92..e4c6f8dae 100644 --- a/src/Pages/Home/Home.jsx +++ b/src/Pages/Home/Home.jsx @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useEffect, useState } from "react"; import styles from "../Home/Home.module.css"; import Footer from "../../Components/Footer/Footer"; @@ -9,6 +9,8 @@ import CountUp from "react-countup"; import "./Home.scss"; const Home = () => { + const donationLink = process.env.REACT_APP_DONATION_LINK + return ( <> @@ -31,9 +33,9 @@ const Home = () => { - + Date: Sun, 3 Mar 2024 10:50:17 +0530 Subject: [PATCH 2/2] Removed unnecessary hooks --- src/Pages/Home/Home.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pages/Home/Home.jsx b/src/Pages/Home/Home.jsx index e4c6f8dae..fd47bc022 100644 --- a/src/Pages/Home/Home.jsx +++ b/src/Pages/Home/Home.jsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from "react"; +import React from "react"; import styles from "../Home/Home.module.css"; import Footer from "../../Components/Footer/Footer";