diff --git a/src/components/Home/Home.jsx b/src/components/Home/Home.jsx index 0e2be16..9fe5efe 100644 --- a/src/components/Home/Home.jsx +++ b/src/components/Home/Home.jsx @@ -150,20 +150,6 @@ export default function Home() { setScreenWidth(window.screen.width); }; - // send email - function sendMail() { - let userEmail = user.email; - if (user) { - axios - .post(`${process.env.REACT_APP_AWS_BACKEND_URL}/send_email`, { - userEmail, - }) - .then(() => alert("Email Sent Successfully!")) - .catch(() => alert("Email NOT SENT")); - } - return; - } - return ( setSearch(e.target.value)} /> - {user && ( - - )}