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

19 lines
562 B
JavaScript
Raw Normal View History

2017-06-06 17:19:12 -04:00
import React from "react";
import { doAuthNavigate } from "actions/navigation";
2017-06-06 17:19:12 -04:00
import { connect } from "react-redux";
2017-07-21 13:23:39 +07:00
import { doFetchAccessToken } from "actions/user";
2017-07-21 17:45:37 -04:00
import { selectAccessToken, selectUser } from "selectors/user";
2017-06-06 17:19:12 -04:00
import HelpPage from "./view";
2017-07-20 15:03:01 -04:00
const select = state => ({
user: selectUser(state),
2017-07-21 13:23:39 +07:00
accessToken: selectAccessToken(state),
2017-07-20 15:03:01 -04:00
});
2017-04-07 12:15:22 +07:00
2017-06-05 21:21:55 -07:00
const perform = dispatch => ({
2017-08-25 23:21:26 -04:00
doAuth: () => dispatch(doAuthNavigate("/help")),
2017-07-21 13:23:39 +07:00
fetchAccessToken: () => dispatch(doFetchAccessToken()),
2017-06-05 21:21:55 -07:00
});
2017-05-21 18:34:12 -04:00
2017-07-20 15:03:01 -04:00
export default connect(select, perform)(HelpPage);