lbry-desktop/ui/component/claimListHeader/index.js
Sean Yesmunt 19fb7d7f06 new layout 🕺
2020-09-29 17:12:32 -04:00

21 lines
723 B
JavaScript

import { connect } from 'react-redux';
import { selectFetchingClaimSearch, SETTINGS, selectFollowedTags } from 'lbry-redux';
import { doToggleTagFollowDesktop } from 'redux/actions/tags';
import { makeSelectClientSetting } from 'redux/selectors/settings';
import { doSetClientSetting, doSyncClientSettings } from 'redux/actions/settings';
import ClaimListDiscover from './view';
const select = state => ({
followedTags: selectFollowedTags(state),
loading: selectFetchingClaimSearch(state),
showNsfw: makeSelectClientSetting(SETTINGS.SHOW_MATURE)(state),
});
const perform = {
doToggleTagFollowDesktop,
doSetClientSetting,
doSyncClientSettings,
};
export default connect(select, perform)(ClaimListDiscover);