From e2a24f40b750886156cef33a38218315c06aef35 Mon Sep 17 00:00:00 2001 From: Reed Garmsen Date: Mon, 31 Aug 2015 09:35:31 -0700 Subject: Cosmetic reformatting of multiple jsx files --- web/react/components/email_verify.jsx | 65 ++++++++++++++++++++++++----------- 1 file changed, 44 insertions(+), 21 deletions(-) (limited to 'web/react/components/email_verify.jsx') diff --git a/web/react/components/email_verify.jsx b/web/react/components/email_verify.jsx index 678eb9928..f2e91dd98 100644 --- a/web/react/components/email_verify.jsx +++ b/web/react/components/email_verify.jsx @@ -1,35 +1,58 @@ // Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. // See License.txt for license information. -module.exports = React.createClass({ - handleResend: function() { - window.location.href = window.location.href + "&resend=true" - }, - render: function() { - var title = ""; - var body = ""; - var resend = ""; - if (this.props.isVerified === "true") { - title = config.SiteName + " Email Verified"; - body =

Your email has been verified! Click Please verify your email address. Check your inbox for an email.

; - resend = + resend = (); } return ( -
-
-
-

{ title }

+
+
+
+

{title}

-
- { body } - { resend } +
+ {body} + {resend}
); } -}); +} + +EmailVerify.defaultProps = { + isVerified: 'false', + teamURL: '', + userEmail: '' +}; +EmailVerify.propTypes = { + isVerified: React.PropTypes.string, + teamURL: React.PropTypes.string, + userEmail: React.PropTypes.string +}; -- cgit v1.2.3-1-g7c22