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

20 lines
751 B
JavaScript
Raw Normal View History

2020-01-20 11:47:03 -05:00
import { connect } from 'react-redux';
import { doClaimSearch, selectClaimSearchByQuery, selectFetchingClaimSearchByQuery, SETTINGS } from 'lbry-redux';
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
2021-03-31 16:55:26 -04:00
import { makeSelectClientSetting, selectShowMatureContent } from 'redux/selectors/settings';
2020-01-20 11:47:03 -05:00
import ClaimListDiscover from './view';
const select = (state) => ({
2020-01-20 11:47:03 -05:00
claimSearchByQuery: selectClaimSearchByQuery(state),
fetchingClaimSearchByQuery: selectFetchingClaimSearchByQuery(state),
2021-03-31 16:55:26 -04:00
showNsfw: selectShowMatureContent(state),
hideReposts: makeSelectClientSetting(SETTINGS.HIDE_REPOSTS)(state),
2020-01-20 11:47:03 -05:00
});
const perform = {
doClaimSearch,
doToggleTagFollowDesktop,
2020-01-20 11:47:03 -05:00
};
export default connect(select, perform)(ClaimListDiscover);