summaryrefslogtreecommitdiffhomepage
path: root/app/containers
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-08-03 15:36:03 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-08-08 16:25:34 +0200
commit9f01cc07d2d6da86d43a002e52a189f60b63eb5d (patch)
tree8f5f13a221aefba51d485b7e6e77d5228269cca3 /app/containers
parent7cb837912df646992f63ad5ff61c26871f5c24b8 (diff)
downloadmullvadvpn-9f01cc07d2d6da86d43a002e52a189f60b63eb5d.tar.xz
mullvadvpn-9f01cc07d2d6da86d43a002e52a189f60b63eb5d.zip
Add launch screen
Diffstat (limited to 'app/containers')
-rw-r--r--app/containers/LaunchPage.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/containers/LaunchPage.js b/app/containers/LaunchPage.js
new file mode 100644
index 0000000000..1b265dd030
--- /dev/null
+++ b/app/containers/LaunchPage.js
@@ -0,0 +1,23 @@
+// @flow
+import { bindActionCreators } from 'redux';
+import { connect } from 'react-redux';
+import { push } from 'connected-react-router';
+import Launch from '../components/Launch';
+
+import type { ReduxState, ReduxDispatch } from '../redux/store';
+import type { SharedRouteProps } from '../routes';
+
+const mapStateToProps = (_state: ReduxState) => ({});
+const mapDispatchToProps = (dispatch: ReduxDispatch, _props: SharedRouteProps) => {
+ const history = bindActionCreators({ push }, dispatch);
+ return {
+ openSettings: () => {
+ history.push('/settings');
+ },
+ };
+};
+
+export default connect(
+ mapStateToProps,
+ mapDispatchToProps,
+)(Launch);