diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-16 17:30:09 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-16 17:30:09 +0000 |
| commit | ca574470c6ce9449a43eaeb81fcb8a35a7656923 (patch) | |
| tree | e32fd43d0e0c4205c1e28e72c7a5c4b5683cf920 /app/components/Connect.js | |
| parent | 4aaf7e0ddbbdf9a5e03fdbb20ecabe4866de96c3 (diff) | |
| download | mullvadvpn-ca574470c6ce9449a43eaeb81fcb8a35a7656923.tar.xz mullvadvpn-ca574470c6ce9449a43eaeb81fcb8a35a7656923.zip | |
Add settings pane
Diffstat (limited to 'app/components/Connect.js')
| -rw-r--r-- | app/components/Connect.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/components/Connect.js b/app/components/Connect.js index 27aaedd4ee..14315ccc5f 100644 --- a/app/components/Connect.js +++ b/app/components/Connect.js @@ -7,10 +7,14 @@ export default class Connect extends Component { logout: PropTypes.func.isRequired } + onSettings() { + this.props.router.push('/settings'); + } + render() { return ( <Layout> - <Header /> + <Header showSettings={ true } onSettings={ ::this.onSettings } /> <Container> <div className="connect"> <button style={{ width: '100px', display: 'block', margin: '10px auto' }} onClick={ this.props.logout }>Log out</button> |
