Added blocks, mutes links to SidebarXS and SidebarMorePopover

• Added:
- blocks, mutes links to SidebarXS and SidebarMorePopover
This commit is contained in:
mgabdev 2020-06-10 20:36:00 -04:00
parent 5665094fd0
commit 10686f32ef
2 changed files with 22 additions and 12 deletions

View File

@ -10,6 +10,8 @@ const messages = defineMessages({
help: { id: 'getting_started.help', defaultMessage: 'Help' },
settings: { id: 'settings', defaultMessage: 'Settings' },
logout: { 'id': 'confirmations.logout.confirm', 'defaultMessage': 'Log out' },
blocks: { id: 'navigation_bar.blocks', defaultMessage: 'Blocked users' },
mutes: { id: 'navigation_bar.mutes', defaultMessage: 'Muted users' },
})
const mapDispatchToProps = (dispatch) => ({
@ -53,6 +55,14 @@ class SidebarMorePopover extends PureComponent {
title: intl.formatMessage(messages.display),
onClick: this.handleOnOpenDisplayModal,
},
{
title: intl.formatMessage(messages.blocks),
to: '/settings/blocks',
},
{
title: intl.formatMessage(messages.mutes),
to: '/settings/mutes',
},
{
title: intl.formatMessage(messages.settings),
href: '/settings/preferences',

View File

@ -148,18 +148,18 @@ class SidebarXS extends ImmutablePureComponent {
// onClick: this.handleSidebarClose,
// title: intl.formatMessage(messages.follow_requests),
// },
// {
// icon: 'block',
// to: '/blocks',
// onClick: this.handleSidebarClose,
// title: intl.formatMessage(messages.blocks),
// },
// {
// icon: 'audio-mute',
// to: '/mutes',
// onClick: this.handleSidebarClose,
// title: intl.formatMessage(messages.mutes),
// },
{
icon: 'block',
to: '/settings/blocks',
onClick: this.handleSidebarClose,
title: intl.formatMessage(messages.blocks),
},
{
icon: 'audio-mute',
to: '/settings/mutes',
onClick: this.handleSidebarClose,
title: intl.formatMessage(messages.mutes),
},
// {
// icon: 'report',
// to: '/filters',