08c6df434e
* Add "Go Live" button to mobile menu * Move "Go Live" all the way to the top
29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
import { connect } from 'react-redux';
|
|
import { selectActiveChannelStakedLevel } from 'redux/selectors/app';
|
|
import { selectSubscriptions } from 'redux/selectors/subscriptions';
|
|
import { doClearPurchasedUriSuccess } from 'redux/actions/file';
|
|
import { selectFollowedTags } from 'redux/selectors/tags';
|
|
import { selectUserVerifiedEmail, selectUser } from 'redux/selectors/user';
|
|
import { selectHomepageData, selectLanguage } from 'redux/selectors/settings';
|
|
import { doSignOut } from 'redux/actions/app';
|
|
import { selectUnseenNotificationCount } from 'redux/selectors/notifications';
|
|
import { selectPurchaseUriSuccess } from 'redux/selectors/claims';
|
|
|
|
import SideNavigation from './view';
|
|
|
|
const select = (state) => ({
|
|
subscriptions: selectSubscriptions(state),
|
|
followedTags: selectFollowedTags(state),
|
|
language: selectLanguage(state), // trigger redraw on language change
|
|
email: selectUserVerifiedEmail(state),
|
|
purchaseSuccess: selectPurchaseUriSuccess(state),
|
|
unseenCount: selectUnseenNotificationCount(state),
|
|
user: selectUser(state),
|
|
homepageData: selectHomepageData(state),
|
|
activeChannelStakedLevel: selectActiveChannelStakedLevel(state),
|
|
});
|
|
|
|
export default connect(select, {
|
|
doSignOut,
|
|
doClearPurchasedUriSuccess,
|
|
})(SideNavigation);
|