Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor email signup on NoRent footer to use new API #1556

Merged
merged 6 commits into from
Jun 24, 2020
Merged

Conversation

sraby
Copy link
Member

@sraby sraby commented Jun 24, 2020

This PR reconfigures the email sign-up form at the footer of NoRent.org to make use of the Mailchimp CORS endpoint included in #1549.

@sraby sraby requested a review from toolness June 24, 2020 20:53
Copy link
Collaborator

@toolness toolness left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, I think b/c you modified the code while I was reviewing, almost all my comments are going to be marked as "outdated" here, so I hope you still see them. This just needs a handful of quick changes, otherwise it looks good!

frontend/lib/norent/components/subscribe.tsx Outdated Show resolved Hide resolved
frontend/lib/norent/components/subscribe.tsx Outdated Show resolved Hide resolved
frontend/lib/norent/components/subscribe.tsx Outdated Show resolved Hide resolved
frontend/lib/norent/components/subscribe.tsx Outdated Show resolved Hide resolved
frontend/lib/norent/components/subscribe.tsx Outdated Show resolved Hide resolved
@sraby
Copy link
Member Author

sraby commented Jun 24, 2020

sorry about the change @toolness! I can still see all of your comments luckily.

@toolness
Copy link
Collaborator

Oh and I wouldn't worry about the CodeClimate stuff for now--I think it should be addressed eventually but I think there are lots of ways to do that, including factoring out a separate module that does a bunch of the repetitive logic from all 3 of our uses for us, and has a thorough test suite... So we can file an issue to deal with it later!

@toolness
Copy link
Collaborator

Nice, this looks great, feel free to merge!

Comment on lines +17 to +18
<SimpleProgressiveEnhancement>
<>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, we should really change this component to accept multiple JSX elements as children. Filed #1560 to address this later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants