summaryrefslogtreecommitdiffhomepage
path: root/app/containers/AccountPage.js
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2017-11-09 13:30:52 +0100
committerErik Larkö <erik@mullvad.net>2017-12-14 09:16:49 +0100
commita35898e0fafa2dae93b00ca074b810cc88a2fa71 (patch)
tree8b85b8bbff5085e4a121e5d06af31271132ac2f0 /app/containers/AccountPage.js
parentb74910f21f720741a6b7e3e537ee637200e6a449 (diff)
downloadmullvadvpn-a35898e0fafa2dae93b00ca074b810cc88a2fa71.tar.xz
mullvadvpn-a35898e0fafa2dae93b00ca074b810cc88a2fa71.zip
Reactxp starter pack
Some changes in app init and rendering the header bar in reactxp. Moved linking and exit to separate files for web/mobile
Diffstat (limited to 'app/containers/AccountPage.js')
-rw-r--r--app/containers/AccountPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/containers/AccountPage.js b/app/containers/AccountPage.js
index f5d31e5bc0..ae992bc12a 100644
--- a/app/containers/AccountPage.js
+++ b/app/containers/AccountPage.js
@@ -5,8 +5,8 @@ import { bindActionCreators } from 'redux';
import { push } from 'react-router-redux';
import Account from '../components/Account';
import accountActions from '../redux/account/actions';
-import { shell } from 'electron';
import { links } from '../config';
+import Linking from '../lib/linking';
import type { ReduxState, ReduxDispatch } from '../redux/store';
import type { SharedRouteProps } from '../routes';
@@ -22,7 +22,7 @@ const mapDispatchToProps = (dispatch: ReduxDispatch, props: SharedRouteProps) =>
onClose: () => {
pushHistory('/settings');
},
- onBuyMore: () => shell.openExternal(links['purchase'])
+ onBuyMore: () => Linking(links['purchase'])
};
};