import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
- follow: { id: 'account.follow', defaultMessage: 'Follow' }
+ follow: { id: 'account.follow', defaultMessage: 'Follow' },
+ unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' }
});
const outerStyle = {
if (account.get('id') !== me && account.get('relationship', null) != null) {
const following = account.getIn(['relationship', 'following']);
- buttons = <IconButton icon={following ? 'user-times' : 'user-plus'} title={intl.formatMessage(messages.follow)} onClick={this.handleFollow} active={following} />;
+ buttons = <IconButton icon={following ? 'user-times' : 'user-plus'} title={intl.formatMessage(following ? messages.unfollow : messages.follow)} onClick={this.handleFollow} active={following} />;
}
return (