lbry-desktop/ui/component/claimUri/index.js
infinite-persistence 75bde149cf
Fix url selectors
No memo required.
2021-11-17 19:57:04 +08:00

12 lines
348 B
JavaScript

import { connect } from 'react-redux';
import { selectCanonicalUrlForUri } from 'redux/selectors/claims';
import { doToast } from 'redux/actions/notifications';
import ClaimUri from './view';
const select = (state, props) => ({
shortUrl: selectCanonicalUrlForUri(state, props.uri),
});
export default connect(select, {
doToast,
})(ClaimUri);