lbry-desktop/src/renderer/page/invite/index.js

20 lines
548 B
JavaScript
Raw Normal View History

import React from 'react';
import { connect } from 'react-redux';
import InvitePage from './view';
import { doFetchInviteStatus } from 'redux/actions/user';
2017-08-18 05:31:44 +02:00
import {
selectUserInviteStatusFailed,
selectUserInviteStatusIsPending,
} from 'redux/selectors/user';
2017-08-18 05:31:44 +02:00
const select = state => ({
isFailed: selectUserInviteStatusFailed(state),
isPending: selectUserInviteStatusIsPending(state),
});
const perform = dispatch => ({
fetchInviteStatus: () => dispatch(doFetchInviteStatus()),
});
export default connect(select, perform)(InvitePage);