d1c74ec997
It is breaking in old Safari 10. Revert for until; will get to a cleaner solution later.
13 lines
413 B
JavaScript
13 lines
413 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectClaimForUri } from 'lbry-redux';
|
|
import { makeSelectViewCountForUri } from 'lbryinc';
|
|
import FileViewCountInline from './view';
|
|
|
|
const select = (state, props) => {
|
|
return {
|
|
claim: makeSelectClaimForUri(props.uri)(state),
|
|
viewCount: makeSelectViewCountForUri(props.uri)(state),
|
|
};
|
|
};
|
|
|
|
export default connect(select, null)(FileViewCountInline);
|