diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-12-26 11:54:28 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-01-03 11:57:35 +0100 |
| commit | 8a9dd5d70145a6c25f4fd00fab574d9343825501 (patch) | |
| tree | 9dee577cf934d0c126cab8295b4d734b04333daf | |
| parent | 25861f245306a8b82d5f808fc7849a125e618e92 (diff) | |
| download | mullvadvpn-8a9dd5d70145a6c25f4fd00fab574d9343825501.tar.xz mullvadvpn-8a9dd5d70145a6c25f4fd00fab574d9343825501.zip | |
Wire up PreferencesPage and allowLan setting
| -rw-r--r-- | app/containers/PreferencesPage.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/containers/PreferencesPage.js b/app/containers/PreferencesPage.js index 757bd693a7..b6bc60350d 100644 --- a/app/containers/PreferencesPage.js +++ b/app/containers/PreferencesPage.js @@ -9,11 +9,14 @@ import type { ReduxState, ReduxDispatch } from '../redux/store'; import type { SharedRouteProps } from '../routes'; const mapStateToProps = (state: ReduxState) => state; -const mapDispatchToProps = (dispatch: ReduxDispatch, _props: SharedRouteProps) => { +const mapDispatchToProps = (dispatch: ReduxDispatch, props: SharedRouteProps) => { + const { backend } = props; const { push: pushHistory } = bindActionCreators({ push }, dispatch); return { onClose: () => pushHistory('/settings'), - onChangeLanSharing: (_changed) => {}, + onChangeLanSharing: (allowLan) => { + backend.setAllowLan(allowLan); + }, }; }; |
