diff options
| author | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-20 13:48:37 +0000 |
|---|---|---|
| committer | Andrej Mihajlov <and@codeispoetry.ru> | 2017-02-20 13:48:37 +0000 |
| commit | 348ef1448cb30d7a83f970fe55d50e27e8b33806 (patch) | |
| tree | 9fb19674175be7f2040eb3d590ea1760b7213235 /app/containers | |
| parent | 02f8a846a2300cadce24ec52d24d10d837be57b0 (diff) | |
| download | mullvadvpn-348ef1448cb30d7a83f970fe55d50e27e8b33806.tar.xz mullvadvpn-348ef1448cb30d7a83f970fe55d50e27e8b33806.zip | |
Add location picker
Diffstat (limited to 'app/containers')
| -rw-r--r-- | app/containers/SelectLocationPage.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/containers/SelectLocationPage.js b/app/containers/SelectLocationPage.js new file mode 100644 index 0000000000..0610bc300b --- /dev/null +++ b/app/containers/SelectLocationPage.js @@ -0,0 +1,19 @@ +import { connect } from 'react-redux'; +import { bindActionCreators } from 'redux'; +import SelectLocation from '../components/SelectLocation'; +import connectActions from '../actions/connect'; +import settingsActions from '../actions/settings'; + +const mapStateToProps = (state) => { + return state; +}; + +const mapDispatchToProps = (dispatch, props) => { + const user = bindActionCreators(connectActions, dispatch); + const settings = bindActionCreators(settingsActions, dispatch); + return { + updateSettings: settings.updateSettings + }; +}; + +export default connect(mapStateToProps, mapDispatchToProps)(SelectLocation); |
