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

19 lines
562 B
JavaScript
Raw Normal View History

2017-06-06 23:19:12 +02:00
import React from "react";
import { doAuthNavigate } from "actions/navigation";
2017-06-06 23:19:12 +02:00
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-08-26 05:21:26 +02:00
doAuth: () => dispatch(doAuthNavigate("/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
2017-07-20 21:03:01 +02:00
export default connect(select, perform)(HelpPage);