From d0c0d3b270c724381bd836571d5edd8120dcdea4 Mon Sep 17 00:00:00 2001 From: Sohee Lim Date: Fri, 15 Nov 2024 09:56:33 -0500 Subject: [PATCH] fix: style --- src/components/NewsletterForm/index.tsx | 5 +++-- src/pages/index.tsx | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/NewsletterForm/index.tsx b/src/components/NewsletterForm/index.tsx index bd3c37e92..b8abb64fd 100644 --- a/src/components/NewsletterForm/index.tsx +++ b/src/components/NewsletterForm/index.tsx @@ -28,7 +28,8 @@ const NewsletterForm: React.FC = ({ } try { - const response = await fetch('/api/subscribeEmail', { + // Replace '/some-api' with the actual API endpoint + const response = await fetch('/some-api', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -64,7 +65,7 @@ const NewsletterForm: React.FC = ({ /> -