aced8fb593
add watch later hover action replace watch later popup item for favorites lint styling for watch_later overlay Add label Use just claim, add requiresAuth Add list icon Tone down text Turn WL Hover Button into component Change WL hover icons small revert Keep watch later in the menu
26 lines
805 B
JavaScript
26 lines
805 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
makeSelectClaimForUri,
|
|
COLLECTIONS_CONSTS,
|
|
makeSelectCollectionForIdHasClaimUrl,
|
|
doCollectionEdit,
|
|
} from 'lbry-redux';
|
|
import FileWatchLaterLink from './view';
|
|
import { doToast } from 'redux/actions/notifications';
|
|
|
|
const select = (state, props) => {
|
|
const claim = makeSelectClaimForUri(props.uri)(state);
|
|
const permanentUri = claim && claim.permanent_url;
|
|
|
|
return {
|
|
claim,
|
|
hasClaimInWatchLater: makeSelectCollectionForIdHasClaimUrl(COLLECTIONS_CONSTS.WATCH_LATER_ID, permanentUri)(state),
|
|
};
|
|
};
|
|
|
|
const perform = dispatch => ({
|
|
doToast: (props) => dispatch(doToast(props)),
|
|
doCollectionEdit: (collection, props) => dispatch(doCollectionEdit(collection, props)),
|
|
});
|
|
|
|
export default connect(select, perform)(FileWatchLaterLink);
|