lbry-desktop/ui/component/claimAuthor/index.js
Rafael 6443af34a0 Refactor claimAuthor
- channelUrl to cached selector also using claimForUri cached selector
2022-02-08 12:35:40 -05:00

13 lines
321 B
JavaScript

import { connect } from 'react-redux';
import { selectChannelForClaimUri } from 'redux/selectors/claims';
import ClaimAuthor from './view';
const select = (state, props) => {
const { uri } = props;
return {
channelUri: selectChannelForClaimUri(state, uri),
};
};
export default connect(select)(ClaimAuthor);