From 12896bd23eeba79884245c1c29fdc568cf21a7fa Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 14 Mar 2016 08:50:46 -0400 Subject: Converting to Webpack. Stage 1. --- web/react/components/should_verify_email.jsx | 111 --------------------------- 1 file changed, 111 deletions(-) delete mode 100644 web/react/components/should_verify_email.jsx (limited to 'web/react/components/should_verify_email.jsx') diff --git a/web/react/components/should_verify_email.jsx b/web/react/components/should_verify_email.jsx deleted file mode 100644 index c473fe366..000000000 --- a/web/react/components/should_verify_email.jsx +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import {FormattedMessage} from 'mm-intl'; -import * as Client from '../utils/client.jsx'; - -export default class ShouldVerifyEmail extends React.Component { - constructor(props) { - super(props); - - this.handleResend = this.handleResend.bind(this); - - this.state = { - resendStatus: 'none' - }; - } - handleResend() { - const teamName = this.props.location.query.teamname; - const email = this.props.location.query.email; - - this.setState({resendStatus: 'sending'}); - - Client.resendVerification(() => { - this.setState({resendStatus: 'success'}); - }, - () => { - this.setState({resendStatus: 'failure'}); - }, - teamName, - email); - } - render() { - let resendConfirm = ''; - if (this.state.resendStatus === 'success') { - resendConfirm = ( -
-
-

- - -

-
- ); - } - - if (this.state.resendStatus === 'failure') { - resendConfirm = ( -
-
-

- - -

-
- ); - } - - return ( -
-
- - - - -
-
-
-

- -

-
-

- -

- - {resendConfirm} -
-
-
-
- ); - } -} - -ShouldVerifyEmail.defaultProps = { -}; -ShouldVerifyEmail.propTypes = { - location: React.PropTypes.object.isRequired -}; -- cgit v1.2.3-1-g7c22