diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-06-29 11:25:19 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-07-03 13:37:54 +0200 |
| commit | b3a6f58d7027e5961180b52d6473f7f504638284 (patch) | |
| tree | f6e5f8b4f8dc72ae1bae0ddfe715b8094deb3750 /app/containers | |
| parent | da08e7752430feb58848172cd76176141e9af82f (diff) | |
| download | mullvadvpn-b3a6f58d7027e5961180b52d6473f7f504638284.tar.xz mullvadvpn-b3a6f58d7027e5961180b52d6473f7f504638284.zip | |
Migrate to app.getVersion()
Diffstat (limited to 'app/containers')
| -rw-r--r-- | app/containers/SettingsPage.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/containers/SettingsPage.js b/app/containers/SettingsPage.js index 2bcef79730..2c68fea676 100644 --- a/app/containers/SettingsPage.js +++ b/app/containers/SettingsPage.js @@ -3,10 +3,9 @@ import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { push } from 'react-router-redux'; -import { version } from '../../package.json'; import Settings from '../components/Settings'; import { links } from '../config'; -import { openLink, exit } from '../lib/platform'; +import { getAppVersion, openLink, exit } from '../lib/platform'; import type { ReduxState, ReduxDispatch } from '../redux/store'; import type { SharedRouteProps } from '../routes'; @@ -14,7 +13,7 @@ import type { SharedRouteProps } from '../routes'; const mapStateToProps = (state: ReduxState) => ({ account: state.account, settings: state.settings, - version: version, + version: getAppVersion(), }); const mapDispatchToProps = (dispatch: ReduxDispatch, _props: SharedRouteProps) => { const { push: pushHistory } = bindActionCreators({ push }, dispatch); |
