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:
parent
02beb533c1
commit
cd159c8f5b
@ -11,7 +11,6 @@ const messages = defineMessages({
|
||||
title: { id: 'community_timeline_settings', defaultMessage: 'Community Feed Settings' },
|
||||
saveAndClose: { id: 'saveClose', defaultMessage: 'Save & Close' },
|
||||
onlyMedia: { id: 'community.column_settings.media_only', defaultMessage: 'Media Only' },
|
||||
showInSidebar: { id: 'show_in_sidebar', defaultMessage: 'Show in Sidebar' },
|
||||
})
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
@ -61,14 +60,6 @@ class CommunityTimelineSettingsModal extends ImmutablePureComponent {
|
||||
>
|
||||
|
||||
<div className={[_s.default, _s.pb10].join(' ')}>
|
||||
<SettingSwitch
|
||||
prefix='community_timeline'
|
||||
settings={settings}
|
||||
settingPath={['shows', 'inSidebar']}
|
||||
onChange={onChange}
|
||||
label={intl.formatMessage(messages.showInSidebar)}
|
||||
/>
|
||||
|
||||
<SettingSwitch
|
||||
prefix='community_timeline'
|
||||
settings={settings}
|
||||
|
@ -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',
|
||||
|
@ -131,6 +131,12 @@ class SidebarXS extends ImmutablePureComponent {
|
||||
onClick: this.handleSidebarClose,
|
||||
title: intl.formatMessage(messages.preferences),
|
||||
},
|
||||
{
|
||||
icon: 'community',
|
||||
to: '/timeline/all',
|
||||
onClick: this.handleSidebarClose,
|
||||
title: 'All'
|
||||
},
|
||||
{
|
||||
icon: 'list',
|
||||
to: '/lists',
|
||||
|
@ -26,7 +26,6 @@ const initialState = ImmutableMap({
|
||||
|
||||
community: ImmutableMap({
|
||||
shows: ImmutableMap({
|
||||
inSidebar: false,
|
||||
onlyMedia: false,
|
||||
}),
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user