diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-07-24 13:11:41 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-07-24 13:12:43 -0300 |
| commit | 18b37cc66631bfbf17eded4d609c1ae12d5f6ccc (patch) | |
| tree | 878db7d308dc322abc5546ead569cd4c7e34023c /app/containers | |
| parent | d1632102fbf53032b87fc8f6bcdc7299ee411b15 (diff) | |
| download | mullvadvpn-18b37cc66631bfbf17eded4d609c1ae12d5f6ccc.tar.xz mullvadvpn-18b37cc66631bfbf17eded4d609c1ae12d5f6ccc.zip | |
Copy account token to clipboard when clicked
Diffstat (limited to 'app/containers')
| -rw-r--r-- | app/containers/AccountPage.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/containers/AccountPage.js b/app/containers/AccountPage.js index a8b54b30a3..2c23d326d8 100644 --- a/app/containers/AccountPage.js +++ b/app/containers/AccountPage.js @@ -4,6 +4,7 @@ import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { push } from 'react-router-redux'; import Account from '../components/Account'; +import accountActions from '../redux/account/actions'; import { links } from '../config'; import { openLink } from '../lib/platform'; @@ -15,9 +16,11 @@ const mapStateToProps = (state: ReduxState) => ({ accountExpiry: state.account.expiry, }); const mapDispatchToProps = (dispatch: ReduxDispatch, props: SharedRouteProps) => { + const { copyAccountToken } = bindActionCreators(accountActions, dispatch); const { push: pushHistory } = bindActionCreators({ push }, dispatch); return { updateAccountExpiry: () => props.app.updateAccountExpiry(), + onCopyAccountToken: () => copyAccountToken(), onLogout: () => { props.app.logout(); }, |
