lbry-desktop/ui/component/claimTilesDiscover/index.js

20 lines
748 B
JavaScript
Raw Normal View History

2020-01-20 17:47:03 +01:00
import { connect } from 'react-redux';
import { doClaimSearch, selectClaimSearchByQuery, selectFetchingClaimSearchByQuery, SETTINGS } from 'lbry-redux';
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) => ({
2020-01-20 17:47:03 +01:00
claimSearchByQuery: selectClaimSearchByQuery(state),
fetchingClaimSearchByQuery: selectFetchingClaimSearchByQuery(state),
2020-01-20 17:47:03 +01:00
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(state),
2020-01-20 17:47:03 +01:00
});
const perform = {
doClaimSearch,
doToggleTagFollowDesktop,
2020-01-20 17:47:03 +01:00
};
export default connect(select, perform)(ClaimListDiscover);