2020-01-20 17:47:03 +01:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import {
|
|
|
|
doClaimSearch,
|
|
|
|
selectClaimSearchByQuery,
|
|
|
|
selectFetchingClaimSearch,
|
|
|
|
selectBlockedChannels,
|
2020-02-28 18:12:19 +01:00
|
|
|
SETTINGS,
|
2020-01-20 17:47:03 +01:00
|
|
|
} from 'lbry-redux';
|
2020-03-10 00:46:37 +01:00
|
|
|
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
|
2020-01-20 17:47:03 +01:00
|
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
|
|
import ClaimListDiscover from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
claimSearchByQuery: selectClaimSearchByQuery(state),
|
|
|
|
loading: selectFetchingClaimSearch(state),
|
|
|
|
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
|
2020-02-20 13:30:27 +01:00
|
|
|
showReposts: makeSelectClientSetting(SETTINGS.SHOW_REPOSTS)(state),
|
2020-01-20 17:47:03 +01:00
|
|
|
hiddenUris: selectBlockedChannels(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = {
|
|
|
|
doClaimSearch,
|
2020-03-10 00:46:37 +01:00
|
|
|
doToggleTagFollowDesktop,
|
2020-01-20 17:47:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(ClaimListDiscover);
|