872259b73a
* am I done? * post diff * unused selector cleanup * missed commit * mess with button styles * fix flow Co-authored-by: Jeremy Kauffman <jeremy@lbry.io> Co-authored-by: Sean Yesmunt <sean@lbry.io>
15 lines
506 B
JavaScript
15 lines
506 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doFetchViewCount, makeSelectViewCountForUri } from 'lbryinc';
|
|
import FileViewCount from './view';
|
|
import { makeSelectClaimForUri } from 'lbry-redux';
|
|
|
|
const select = (state, props) => ({
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
viewCount: makeSelectViewCountForUri(props.uri)(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
fetchViewCount: claimId => dispatch(doFetchViewCount(claimId)),
|
|
});
|
|
|
|
export default connect(select, perform)(FileViewCount);
|