diff --git a/components/molecules/NewsletterForm/newsletter-form.stories.tsx b/components/molecules/NewsletterForm/newsletter-form.stories.tsx index cab6a30690..a811e83bc0 100644 --- a/components/molecules/NewsletterForm/newsletter-form.stories.tsx +++ b/components/molecules/NewsletterForm/newsletter-form.stories.tsx @@ -1,12 +1,12 @@ import { ComponentMeta, ComponentStory } from "@storybook/react"; -import NewsletterForm from "components/molecules/NewsletterForm/newsletter-form"; +import NewsletterLink from "components/molecules/NewsletterForm/newsletter-form"; const storyConfig = { title: "Design System/Molecules/NewsletterForm", -} as ComponentMeta; +} as ComponentMeta; export default storyConfig; -const NewsletterFormTemplate: ComponentStory = (args) => ; +const NewsletterFormTemplate: ComponentStory = (args) => ; export const Default = NewsletterFormTemplate.bind({}); diff --git a/components/molecules/NewsletterForm/newsletter-form.tsx b/components/molecules/NewsletterForm/newsletter-form.tsx index 1d408b1dbe..adb1227581 100644 --- a/components/molecules/NewsletterForm/newsletter-form.tsx +++ b/components/molecules/NewsletterForm/newsletter-form.tsx @@ -7,6 +7,16 @@ import TextInput from "components/atoms/TextInput/text-input"; import SaucedLogo from "img/fallbackImageColor.svg"; import { validateEmail } from "lib/utils/validate-email"; +/* + * cursed: this form needs a refactor as it won't actually subscribe the user to + * the newsletter while still returning success. This is related to breaking changes + * with how Next works with Netlify forms: https://docs.netlify.com/frameworks/next-js/overview/#breaking-changes + * + * For now, use NewsletterLink which is a simple link off to the ghost.io blog directly. + * + * related to: https://github.com/open-sauced/app/issues/3796 + */ + const NewsletterForm = () => { const [loading, setLoading] = useState(false); const [email, setEmail] = useState(""); @@ -127,4 +137,30 @@ const NewsletterForm = () => { ); }; -export default NewsletterForm; +const NewsletterLink = () => { + return ( + + ); +}; + +export default NewsletterLink; diff --git a/pages/feed/index.tsx b/pages/feed/index.tsx index 622a0cb31f..a3e7d4ed85 100644 --- a/pages/feed/index.tsx +++ b/pages/feed/index.tsx @@ -28,7 +28,7 @@ import Pagination from "components/molecules/Pagination/pagination"; import PaginationResults from "components/molecules/PaginationResults/pagination-result"; import FollowingHighlightWrapper from "components/organisms/FollowersHighlightWrapper/following-highlight-wrapper"; import HomeHighlightsWrapper from "components/organisms/HomeHighlightsWrapper/home-highlights-wrapper"; -import NewsletterForm from "components/molecules/NewsletterForm/newsletter-form"; +import NewsletterLink from "components/molecules/NewsletterForm/newsletter-form"; import UserCard, { MetaObj } from "components/atoms/UserCard/user-card"; import FeaturedHighlightsPanel from "components/molecules/FeaturedHighlightsPanel/featured-highlights-panel"; import AnnouncementCard from "components/molecules/AnnouncementCard/announcement-card"; @@ -165,7 +165,7 @@ export default function Feeds(props: HighlightSSRProps) { twitterCard="summary_large_image" />
- +
); @@ -361,7 +361,7 @@ export default function Feeds(props: HighlightSSRProps) { {featuredHighlights && featuredHighlights.length > 0 && ( )} - +