lbry-desktop/ui/component/wunderbarSuggestion/index.js
infinite-persistence a4add6eab6
Fix geoblocked items appearing in wunderbar suggestion popup
This list is not using ClaimPreview or ClaimPreviewTile, so the filtering was missed.
2022-05-25 14:37:09 +08:00

21 lines
591 B
JavaScript

import { connect } from 'react-redux';
import {
selectClaimForUri,
selectGeoRestrictionForUri,
selectIsUriResolving,
selectOdyseeMembershipForUri,
} from 'redux/selectors/claims';
import WunderbarSuggestion from './view';
const select = (state, props) => {
const { uri } = props;
return {
claim: selectClaimForUri(state, uri),
isResolvingUri: selectIsUriResolving(state, uri),
geoRestriction: selectGeoRestrictionForUri(state, props.uri),
odyseeMembership: selectOdyseeMembershipForUri(state, uri),
};
};
export default connect(select)(WunderbarSuggestion);