Front end edits to accomedate ignoredUsers

This commit is contained in:
Wyatt Johnson
2017-05-12 10:25:59 -06:00
parent ed27209de9
commit e3017efebf
3 changed files with 11 additions and 9 deletions
@@ -199,12 +199,12 @@ const fragments = {
}
}
}
myIgnoredUsers {
id,
username,
}
me {
status
ignoredUsers {
id
username
}
}
...${getDefinitionName(Comment.fragments.root)}
}
@@ -1,6 +1,8 @@
query myIgnoredUsers {
myIgnoredUsers {
id,
username,
me {
ignoredUsers {
id,
username,
}
}
}
@@ -57,12 +57,12 @@ class ProfileContainer extends Component {
}
{
myIgnoredUsersData.myIgnoredUsers && myIgnoredUsersData.myIgnoredUsers.length
myIgnoredUsersData.me.ignoredUsers && myIgnoredUsersData.me.ignoredUsers.length
? (
<div>
<h3>Ignored users</h3>
<IgnoredUsers
users={myIgnoredUsersData.myIgnoredUsers}
users={myIgnoredUsersData.me.ignoredUsers}
stopIgnoring={stopIgnoringUser}
/>
</div>