lbry-desktop/ui/component/scheduledStreams/index.js
Dan Peterson bbe68a3319
Add a setting to hide scheduled livestreams from home/following (#626)
* Add a setting to hide scheduled livestreams from home/following

* Add a hide button in the scheduled stream header.

* Fix typo + make sure pref is synced
2022-01-05 16:20:43 -05:00

11 lines
469 B
JavaScript

import { connect } from 'react-redux';
import ScheduledStreams from './view';
import { doSetClientSetting } from 'redux/actions/settings';
import { doToast } from 'redux/actions/notifications';
const perform = (dispatch) => ({
setClientSetting: (key, value, pushPrefs) => dispatch(doSetClientSetting(key, value, pushPrefs)),
doShowSnackBar: (message) => dispatch(doToast({ isError: false, message })),
});
export default connect(null, perform)(ScheduledStreams);