2017-06-06 23:19:12 +02:00
|
|
|
import React from "react";
|
|
|
|
import { doNavigate } from "actions/app";
|
|
|
|
import { connect } from "react-redux";
|
2017-07-21 08:23:39 +02:00
|
|
|
import { doFetchAccessToken } from "actions/user";
|
2017-07-21 23:45:37 +02:00
|
|
|
import { selectAccessToken, selectUser } from "selectors/user";
|
2017-06-06 23:19:12 +02:00
|
|
|
import HelpPage from "./view";
|
2017-07-20 21:03:01 +02:00
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
user: selectUser(state),
|
2017-07-21 08:23:39 +02:00
|
|
|
accessToken: selectAccessToken(state),
|
2017-07-20 21:03:01 +02:00
|
|
|
});
|
2017-04-07 07:15:22 +02:00
|
|
|
|
2017-06-06 06:21:55 +02:00
|
|
|
const perform = dispatch => ({
|
2017-05-22 00:34:12 +02:00
|
|
|
navigate: (path, params) => dispatch(doNavigate(path, params)),
|
2017-07-21 08:23:39 +02:00
|
|
|
fetchAccessToken: () => dispatch(doFetchAccessToken()),
|
2017-06-06 06:21:55 +02:00
|
|
|
});
|
2017-05-22 00:34:12 +02:00
|
|
|
|
2017-07-20 21:03:01 +02:00
|
|
|
export default connect(select, perform)(HelpPage);
|