diff --git a/www/src/components/email-capture-form.js b/www/src/components/email-capture-form.js index 2402cc6744681..1676bf1b87841 100644 --- a/www/src/components/email-capture-form.js +++ b/www/src/components/email-capture-form.js @@ -76,28 +76,31 @@ class EmailCaptureForm extends React.Component { { status: `sending`, msg: null, - } + }, // setState callback (subscribe email to MC) - // this._postEmailToMailchimp(this.state.email, { - // pathname: document.location.pathname, - // }) + this._postEmailToMailchimp(this.state.email, { + pathname: document.location.pathname, + }) ) } render() { + const { signupMessage, confirmMessage, containerCss } = this.props + return (
{this.state.status === `success` ? ( -
Thank you! Youʼll receive your first email shortly.
+
{confirmMessage}
) : (
-

Enjoyed this post? Receive the next one in your inbox!

+

{signupMessage}

+ + Newsletter + + +

+ Newsletter +

+
+ Sign up for the Gatsby newsletter to keep up with the latest from + the Gatsby community! Hear about new features, tips & tricks, and + what people are building. +
+ + +
+ + ) + } +} + +export default NewsLetter