summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2018-01-09 09:10:06 +0100
committeranderklander <anderklander@gmail.com>2018-01-15 15:03:46 +0100
commitdf7b3822f271e9e1d44cd150ca0a72917dd928f2 (patch)
tree223a9ea6baac350f1eacc8e1774fe5d780da0956 /app
parent98482323df19c9d63914cf70ff3b57bcce81d15d (diff)
downloadmullvadvpn-df7b3822f271e9e1d44cd150ca0a72917dd928f2.tar.xz
mullvadvpn-df7b3822f271e9e1d44cd150ca0a72917dd928f2.zip
OpenLink in containers
Diffstat (limited to 'app')
-rw-r--r--app/containers/AccountPage.js4
-rw-r--r--app/containers/ConnectPage.js4
-rw-r--r--app/containers/LoginPage.js4
3 files changed, 6 insertions, 6 deletions
diff --git a/app/containers/AccountPage.js b/app/containers/AccountPage.js
index 4ef7de5d83..d4fdf92b3a 100644
--- a/app/containers/AccountPage.js
+++ b/app/containers/AccountPage.js
@@ -6,7 +6,7 @@ import { push } from 'react-router-redux';
import Account from '../components/Account';
import accountActions from '../redux/account/actions';
import { links } from '../config';
-import { open } from '../lib/platform';
+import { openLink } from '../lib/platform';
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: () => open(links['purchase'])
+ onBuyMore: () => openLink(links['purchase'])
};
};
diff --git a/app/containers/ConnectPage.js b/app/containers/ConnectPage.js
index 6bcfc40cfe..d9f3bd81e7 100644
--- a/app/containers/ConnectPage.js
+++ b/app/containers/ConnectPage.js
@@ -6,7 +6,7 @@ import { push } from 'react-router-redux';
import { links } from '../config';
import Connect from '../components/Connect';
import connectActions from '../redux/connection/actions';
-import { open } from '../lib/platform';
+import { openLink } from '../lib/platform';
import type { ReduxState, ReduxDispatch } from '../redux/store';
import type { SharedRouteProps } from '../routes';
@@ -40,7 +40,7 @@ const mapDispatchToProps = (dispatch: ReduxDispatch, props: SharedRouteProps) =>
onDisconnect: () => {
disconnect(backend);
},
- onExternalLink: (type) => open(links[type]),
+ onExternalLink: (type) => openLink(links[type]),
};
};
diff --git a/app/containers/LoginPage.js b/app/containers/LoginPage.js
index bf1a7fdc70..52fac166fa 100644
--- a/app/containers/LoginPage.js
+++ b/app/containers/LoginPage.js
@@ -6,7 +6,7 @@ import { push } from 'react-router-redux';
import Login from '../components/Login';
import accountActions from '../redux/account/actions';
import { links } from '../config';
-import { open } from '../lib/platform';
+import { openLink } from '../lib/platform';
import type { ReduxState, ReduxDispatch } from '../redux/store';
import type { SharedRouteProps } from '../routes';
@@ -26,7 +26,7 @@ const mapDispatchToProps = (dispatch: ReduxDispatch, props: SharedRouteProps) =>
onFirstChangeAfterFailure: () => {
resetLoginError();
},
- onExternalLink: (type) => open(links[type]),
+ onExternalLink: (type) => openLink(links[type]),
onAccountTokenChange: (token) => {
updateAccountToken(token);
},