diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-01-24 12:51:43 +0100 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-01-24 11:51:43 +0000 |
commit | 479bd1a2b307a1fc35b7ca5869166875612c62b1 (patch) | |
tree | 15027352f7814a29b45363afc4574c62f5b8aa92 /webapp/components | |
parent | b87cd4e276cd0ef3c90e78cddd0b8b87e52e5ede (diff) | |
download | chat-479bd1a2b307a1fc35b7ca5869166875612c62b1.tar.gz chat-479bd1a2b307a1fc35b7ca5869166875612c62b1.tar.bz2 chat-479bd1a2b307a1fc35b7ca5869166875612c62b1.zip |
Move instances of Client.resendVerification() in components to an action (#5169)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/should_verify_email.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/should_verify_email.jsx b/webapp/components/should_verify_email.jsx index 5ac67e383..61edf9422 100644 --- a/webapp/components/should_verify_email.jsx +++ b/webapp/components/should_verify_email.jsx @@ -2,11 +2,12 @@ // See License.txt for license information. import {FormattedMessage} from 'react-intl'; -import Client from 'client/web_client.jsx'; import React from 'react'; import {Link} from 'react-router/es6'; +import {resendVerification} from 'actions/user_actions.jsx'; + export default class ShouldVerifyEmail extends React.Component { constructor(props) { super(props); @@ -22,7 +23,7 @@ export default class ShouldVerifyEmail extends React.Component { this.setState({resendStatus: 'sending'}); - Client.resendVerification( + resendVerification( email, () => { this.setState({resendStatus: 'success'}); |