lbry-desktop/ui/component/creatorAnalytics/index.js

14 lines
431 B
JavaScript
Raw Normal View History

2020-03-18 22:14:11 +01:00
import { connect } from 'react-redux';
2020-04-22 21:07:38 +02:00
import { makeSelectClaimForUri, doPrepareEdit } from 'lbry-redux';
2020-03-18 22:14:11 +01:00
import CreatorAnalytics from './view';
2020-04-22 21:07:38 +02:00
const select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state),
2020-03-18 22:14:11 +01:00
});
const perform = dispatch => ({
prepareEdit: channelName => dispatch(doPrepareEdit({ signing_channel: { name: channelName } })),
});
export default connect(select, perform)(CreatorAnalytics);