2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2018-09-24 05:44:42 +02:00
|
|
|
import { doFetchAccessToken, selectAccessToken, selectUser } from 'lbryinc';
|
2018-06-09 05:38:09 +02:00
|
|
|
import { selectDaemonSettings } from 'redux/selectors/settings';
|
2017-12-21 22:08:54 +01: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),
|
2018-06-09 05:38:09 +02:00
|
|
|
deamonSettings: selectDaemonSettings(state),
|
2017-07-20 21:03:01 +02:00
|
|
|
});
|
2017-04-07 07:15:22 +02:00
|
|
|
|
2019-04-05 00:23:12 +02:00
|
|
|
const perform = (dispatch, ownProps) => ({
|
|
|
|
doAuth: () => ownProps.history.push('/$/auth?redirect=help'),
|
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
|
|
|
|
2018-06-09 05:38:09 +02:00
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(HelpPage);
|