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

17 lines
563 B
JavaScript
Raw Normal View History

2020-03-18 22:14:11 +01:00
import * as MODALS from 'constants/modal_types';
2020-03-18 18:11:37 +01:00
import { connect } from 'react-redux';
import { selectMyChannelClaims, selectFetchingMyChannels } from 'lbry-redux';
2020-03-18 22:14:11 +01:00
import { doOpenModal } from 'redux/actions/app';
import CreatorDashboardPage from './view';
2020-03-18 18:11:37 +01:00
const select = state => ({
channels: selectMyChannelClaims(state),
fetchingChannels: selectFetchingMyChannels(state),
});
2020-03-18 22:14:11 +01:00
const perform = dispatch => ({
openChannelCreateModal: () => dispatch(doOpenModal(MODALS.CREATE_CHANNEL)),
});
export default connect(select, perform)(CreatorDashboardPage);