2f4dedfba2
* Add Channel Mention selection ability * Fix mentioned user name being smaller than other text * Improve logic for locating a mention * Fix mentioning with enter on livestream * Fix breaking for invalid URI query * Handle punctuation after mention * Fix name display and appeareance * Use canonical url * Fix missing search
15 lines
563 B
JavaScript
15 lines
563 B
JavaScript
import { connect } from 'react-redux';
|
|
import { makeSelectIsUriResolving, doResolveUri } from 'lbry-redux';
|
|
import { makeSelectWinningUriForQuery } from 'redux/selectors/search';
|
|
import ChannelMentionTopSuggestion from './view';
|
|
|
|
const select = (state, props) => {
|
|
const uriFromQuery = `lbry://${props.query}`;
|
|
return {
|
|
uriFromQuery,
|
|
isResolvingUri: makeSelectIsUriResolving(uriFromQuery)(state),
|
|
winningUri: makeSelectWinningUriForQuery(props.query)(state),
|
|
};
|
|
};
|
|
|
|
export default connect(select, { doResolveUri })(ChannelMentionTopSuggestion);
|