lbry-desktop/ui/component/filePrice/index.js
Rafael 0dccabe692 Selector change
- and remove from where it was unused
2022-04-20 09:18:43 -04:00

18 lines
711 B
JavaScript

import { connect } from 'react-redux';
import { selectClaimForUri, selectClaimWasPurchasedForUri, selectClaimIsMine } from 'redux/selectors/claims';
import { selectCostInfoForUri, doFetchCostInfoForUri, selectFetchingCostInfoForUri } from 'lbryinc';
import FilePrice from './view';
const select = (state, props) => {
const claim = selectClaimForUri(state, props.uri);
return {
claim,
claimIsMine: selectClaimIsMine(state, claim),
claimWasPurchased: selectClaimWasPurchasedForUri(state, props.uri),
costInfo: selectCostInfoForUri(state, props.uri),
fetching: selectFetchingCostInfoForUri(state, props.uri),
};
};
export default connect(select, { doFetchCostInfoForUri })(FilePrice);