Add link to blocked users to getting started page

master
Eugen Rochko 8 years ago
parent 920ba5fc4e
commit c5a08eb56e
  1. 2
      app/assets/javascripts/components/features/blocks/index.jsx
  2. 4
      app/assets/javascripts/components/features/getting_started/index.jsx

@ -10,7 +10,7 @@ import { fetchBlocks, expandBlocks } from '../../actions/blocks';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
heading: { id: 'column.blocks', defaultMessage: 'Blocked' }
heading: { id: 'column.blocks', defaultMessage: 'Blocked users' }
});
const mapStateToProps = state => ({

@ -11,7 +11,8 @@ const messages = defineMessages({
preferences: { id: 'navigation_bar.preferences', defaultMessage: 'Preferences' },
follow_requests: { id: 'navigation_bar.follow_requests', defaultMessage: 'Follow requests' },
sign_out: { id: 'navigation_bar.logout', defaultMessage: 'Sign out' },
favourites: { id: 'navigation_bar.favourites', defaultMessage: 'Favourites' }
favourites: { id: 'navigation_bar.favourites', defaultMessage: 'Favourites' },
blocks: { id: 'navigation_bar.blocks', defaultMessage: 'Blocked users' }
});
const mapStateToProps = state => ({
@ -32,6 +33,7 @@ const GettingStarted = ({ intl, me }) => {
<ColumnLink icon='cog' text={intl.formatMessage(messages.preferences)} href='/settings/preferences' />
<ColumnLink icon='star' text={intl.formatMessage(messages.favourites)} to='/favourites' />
{followRequests}
<ColumnLink icon='users' text={intl.formatMessage(messages.blocks)} to='/blocks' />
<ColumnLink icon='sign-out' text={intl.formatMessage(messages.sign_out)} href='/auth/sign_out' method='delete' />
</div>

Loading…
Cancel
Save