mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
Clearer display of takeover amounts Repost from empty search result, from top page, or from claim review changes final touches bump empty comment copy they emptier validation cleanup extra
22 lines
767 B
JavaScript
22 lines
767 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doResolveUris, doClearPublish, doPrepareEdit, selectPendingIds } from 'lbry-redux';
|
|
import { makeSelectWinningUriForQuery } from 'redux/selectors/search';
|
|
import SearchTopClaim from './view';
|
|
import { push } from 'connected-react-router';
|
|
import * as PAGES from 'constants/pages';
|
|
|
|
const select = (state, props) => ({
|
|
winningUri: makeSelectWinningUriForQuery(props.query)(state),
|
|
pendingIds: selectPendingIds(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
beginPublish: name => {
|
|
dispatch(doClearPublish());
|
|
dispatch(doPrepareEdit({ name }));
|
|
dispatch(push(`/$/${PAGES.UPLOAD}`));
|
|
},
|
|
doResolveUris: uris => dispatch(doResolveUris(uris)),
|
|
});
|
|
|
|
export default connect(select, perform)(SearchTopClaim);
|