diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-11-30 13:56:00 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2017-12-06 11:48:39 +0100 |
| commit | ec45ee8fc88fef85fc73caf80dfb5b0f28bf2cad (patch) | |
| tree | c0ccb271ba8b6cc0211e72a52ee44ab2ca351d24 /app/containers | |
| parent | e64a5c63a36c29724ae8e94d0ba39988fa603183 (diff) | |
| download | mullvadvpn-ec45ee8fc88fef85fc73caf80dfb5b0f28bf2cad.tar.xz mullvadvpn-ec45ee8fc88fef85fc73caf80dfb5b0f28bf2cad.zip | |
Fix flow annotations for AdvancedSettingsPage
Diffstat (limited to 'app/containers')
| -rw-r--r-- | app/containers/AdvancedSettingsPage.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/containers/AdvancedSettingsPage.js b/app/containers/AdvancedSettingsPage.js index 9155ba9a19..6f456abcea 100644 --- a/app/containers/AdvancedSettingsPage.js +++ b/app/containers/AdvancedSettingsPage.js @@ -6,7 +6,10 @@ import { AdvancedSettings } from '../components/AdvancedSettings'; import RelaySettingsBuilder from '../lib/relay-settings-builder'; import log from 'electron-log'; -const mapStateToProps = (state) => { +import type { ReduxState, ReduxDispatch } from '../redux/store'; +import type { SharedRouteProps } from '../routes'; + +const mapStateToProps = (state: ReduxState) => { const relaySettings = state.settings.relaySettings; if(relaySettings.normal) { const { protocol, port } = relaySettings.normal; @@ -22,7 +25,7 @@ const mapStateToProps = (state) => { } }; -const mapDispatchToProps = (dispatch, props) => { +const mapDispatchToProps = (dispatch: ReduxDispatch, props: SharedRouteProps) => { const { backend } = props; return { onClose: () => dispatch(push('/settings')), |
