diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-09 15:15:12 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-09 15:15:12 +0000 |
| commit | c74e1eded68e2932aa053739f821064c528d552a (patch) | |
| tree | 545fb4fbbf1836c058769b8345b791a04acdbeac /app/components/Login.js | |
| parent | 8ab8b15367db27d30cc5e67f7b92da8f12c339ee (diff) | |
| download | mullvadvpn-c74e1eded68e2932aa053739f821064c528d552a.tar.xz mullvadvpn-c74e1eded68e2932aa053739f821064c528d552a.zip | |
Open create account page in browser
Diffstat (limited to 'app/components/Login.js')
| -rw-r--r-- | app/components/Login.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/components/Login.js b/app/components/Login.js index dbaec2f43a..adf8e2cedb 100644 --- a/app/components/Login.js +++ b/app/components/Login.js @@ -1,5 +1,7 @@ +import { shell } from 'electron'; import React, { Component, PropTypes } from 'react'; import Layout from './Layout'; +import constants from '../constants'; export default class Login extends Component { static propTypes = { @@ -15,6 +17,10 @@ export default class Login extends Component { this.props.router.push('/loggedin'); } + handleCreateAccount() { + shell.openExternal(constants.createAccountURL); + } + render() { return ( <Layout> @@ -30,7 +36,7 @@ export default class Login extends Component { </div> <div className="login-footer"> <div className="login-footer__prompt">Don't have an account number?</div> - <button className="login-footer__button">Create account</button> + <button className="login-footer__button" onClick={::this.handleCreateAccount}>Create account</button> </div> </div> </Layout> |
