updates menu label based on un/following

This commit is contained in:
Travis Kohlbeck 2020-02-17 16:53:10 -05:00
parent 3542a88d98
commit d4663e9bf1
1 changed files with 4 additions and 1 deletions

View File

@ -432,7 +432,10 @@ class NotificationsPage extends Component<any, INotificationsPageState> {
<MenuItem
onClick={() => this.toggleFollow(notif.account)}
>
Follow
{this.state.relationships[notif.account.id]
.following
? "Unfollow"
: "Follow"}
</MenuItem>
</>
) : null}