Added All/Community feed link in sidebars

• Added:
- All/Community feed link in sidebars

• Removed:
- Setting for optionally showing community button in sidebar
This commit is contained in:
mgabdev
2020-05-15 17:20:25 -04:00
parent 02beb533c1
commit cd159c8f5b
4 changed files with 11 additions and 19 deletions

View File

@@ -43,7 +43,6 @@ const mapStateToProps = (state) => ({
moreOpen: state.getIn(['popover', 'popoverType']) === 'SIDEBAR_MORE',
notificationCount: state.getIn(['notifications', 'unread']),
homeItemsQueueCount: state.getIn(['timelines', 'home', 'totalQueuedItemsCount']),
showCommunityTimeline: state.getIn(['settings', 'community', 'shows', 'inSidebar']),
})
const mapDispatchToProps = (dispatch) => ({
@@ -66,7 +65,6 @@ class Sidebar extends ImmutablePureComponent {
static propTypes = {
intl: PropTypes.object.isRequired,
account: ImmutablePropTypes.map,
showCommunityTimeline: PropTypes.bool,
moreOpen: PropTypes.bool,
onClose: PropTypes.func.isRequired,
onOpenComposeModal: PropTypes.func.isRequired,
@@ -100,7 +98,6 @@ class Sidebar extends ImmutablePureComponent {
account,
notificationCount,
homeItemsQueueCount,
showCommunityTimeline,
moreOpen,
actions,
tabs,
@@ -121,12 +118,6 @@ class Sidebar extends ImmutablePureComponent {
to: '/home',
count: homeItemsQueueCount,
},
{
title: 'Community',
icon: 'community',
to: '/timeline/all',
hidden: !showCommunityTimeline,
},
{
title: 'Notifications',
icon: 'notifications',
@@ -174,6 +165,11 @@ class Sidebar extends ImmutablePureComponent {
]
const exploreItems = [
{
title: 'All',
icon: 'community',
to: '/timeline/all',
},
{
title: 'Chat',
icon: 'chat',