lbry-desktop/src/ui/page/help/index.js

21 lines
587 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2018-09-24 05:44:42 +02:00
import { doFetchAccessToken, selectAccessToken, selectUser } from 'lbryinc';
import { selectDaemonSettings } from 'redux/selectors/settings';
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),
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
export default connect(
select,
perform
)(HelpPage);