diff --git a/client/src/views/common/components/BannerTopBar.js b/client/src/views/common/components/BannerTopBar.js index 3c6b3505e..823877f72 100644 --- a/client/src/views/common/components/BannerTopBar.js +++ b/client/src/views/common/components/BannerTopBar.js @@ -6,17 +6,20 @@ const BannerTopBar = ({ size, backgroundUrl, title, - text + text, + children }) => (
{title} {text} + {children}
) BannerTopBar.propTypes = { + children: PropTypes.node, backgroundUrl: PropTypes.string, size: PropTypes.string, title: PropTypes.oneOfType([PropTypes.string, PropTypes.array]), diff --git a/client/src/views/email-verification/components/SignupForm.js b/client/src/views/email-verification/components/SignupForm.js index ab2903565..4a8b7b862 100644 --- a/client/src/views/email-verification/components/SignupForm.js +++ b/client/src/views/email-verification/components/SignupForm.js @@ -25,35 +25,41 @@ export class SignupForm extends Component { this.state = { email: '', - emailError: '' + emailError: '', + success: false } } render () { - const { classes, width } = this.props + const { + classes, + width, + alignCenter, + displayTitle, + displayIntro + } = this.props return ( {(NewsletterSignup, { loading, error, data }) => { - let successMessage = false - if (data.NewsletterSignup === 'SUCESS') { - successMessage = true - } return ( - - Stay in touch! - Opt-in our mailing list to stay up to date with the Advanced Algos Project. + + {displayTitle && Stay in touch!} + {displayIntro && Opt-in our mailing list to stay up to date with the Advanced Algos Project.}
- Thank you for your interest! We'll keep you informed + Thank you for signing up! Please check your email and click on the confirmation link to complete the signup process. - +