Commit 10686f32 authored by mgabdev's avatar mgabdev

Added blocks, mutes links to SidebarXS and SidebarMorePopover

• Added:
- blocks, mutes links to SidebarXS and SidebarMorePopover
parent 5665094f
......@@ -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',
......
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment