a0df0a0e0a
## Issue 4708: Bring back tag list in side bar when Tags view selected ## Approach - Instead of displaying either Channels or Tags, both will now be displayed. - The tags will simply be a the same button component as the "channels", but with a "#" prefix. This simplifies the CSS-side changes, and looks better overall as well.
24 lines
1,019 B
JavaScript
24 lines
1,019 B
JavaScript
import { connect } from 'react-redux';
|
|
import { selectSubscriptions } from 'redux/selectors/subscriptions';
|
|
import { selectFollowedTags, selectPurchaseUriSuccess, doClearPurchasedUriSuccess, SETTINGS } from 'lbry-redux';
|
|
import { selectUserVerifiedEmail, selectUser } from 'redux/selectors/user';
|
|
import { makeSelectClientSetting } from 'redux/selectors/settings';
|
|
import { doSignOut } from 'redux/actions/app';
|
|
import { selectUnreadNotificationCount } from 'redux/selectors/notifications';
|
|
|
|
import SideNavigation from './view';
|
|
|
|
const select = state => ({
|
|
subscriptions: selectSubscriptions(state),
|
|
followedTags: selectFollowedTags(state),
|
|
language: makeSelectClientSetting(SETTINGS.LANGUAGE)(state), // trigger redraw on language change
|
|
email: selectUserVerifiedEmail(state),
|
|
purchaseSuccess: selectPurchaseUriSuccess(state),
|
|
unreadCount: selectUnreadNotificationCount(state),
|
|
user: selectUser(state),
|
|
});
|
|
|
|
export default connect(select, {
|
|
doSignOut,
|
|
doClearPurchasedUriSuccess,
|
|
})(SideNavigation);
|