d370cc37a8
- Factor out for re-use in upcoming Shared Blocklist - Improvements: - Uses floating popup to show the suggestion/result rather than inline. - Users can now press Enter to select the suggestion, instead of having to use the mouse. - Users now don't need to enter '@' for channel names. They will still need to enter the full channel name, and disambiguate with claim_id if necessary. - Fix jumpiness in position as the user types.
9 lines
285 B
JavaScript
9 lines
285 B
JavaScript
import { connect } from 'react-redux';
|
|
import { doToast } from 'redux/actions/notifications';
|
|
import SearchChannelField from './view';
|
|
|
|
const perform = (dispatch) => ({
|
|
doToast: (options) => dispatch(doToast(options)),
|
|
});
|
|
|
|
export default connect(null, perform)(SearchChannelField);
|