Add missing back button to "Follow Requests"

Currently we have the problem where the follow request button is missing
from the Follow request tab. This means that when you visit that tab you
either have to press the back button in the browser or re-enter the home
page, which breaks the app flow.

This will resolve that issue by adding a new back button to that tab,
in the same way that the public timeline, and favourites have.
This commit is contained in:
Billie Thompson 2017-01-28 23:49:42 +00:00
parent b12bdd2aea
commit b1571b1e1d
No known key found for this signature in database
GPG Key ID: D5D50C9378BFCAB0
1 changed files with 2 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll';
import Column from '../ui/components/column';
import ColumnBackButton from '../../components/column_back_button';
import AccountAuthorizeContainer from './containers/account_authorize_container';
import { fetchFollowRequests, expandFollowRequests } from '../../actions/accounts';
import { defineMessages, injectIntl } from 'react-intl';
@ -51,6 +52,7 @@ const FollowRequests = React.createClass({
return (
<Column icon='users' heading={intl.formatMessage(messages.heading)}>
<ColumnBackButton />
<ScrollContainer scrollKey='follow_requests'>
<div className='scrollable' onScroll={this.handleScroll}>
{accountIds.map(id =>