From fc352df2395b2b35d3bf6b1832a323dcda15ea15 Mon Sep 17 00:00:00 2001 From: Dang Nguyen Nguyen Date: Mon, 14 Aug 2023 14:36:53 -0700 Subject: [PATCH] remove test sendmail func --- src/components/Home/Home.jsx | 23 ----------------------- 1 file changed, 23 deletions(-) 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 && ( - - )}