Add follower and following views
This commit is contained in:
parent
dbad99cb4f
commit
ccfc2e57d0
12 changed files with 229 additions and 28 deletions
|
@ -10,8 +10,12 @@ const backendInteractorService = (credentials) => {
|
|||
return apiService.fetchConversation({id, credentials})
|
||||
}
|
||||
|
||||
const fetchFriends = () => {
|
||||
return apiService.fetchFriends({credentials})
|
||||
const fetchFriends = ({id}) => {
|
||||
return apiService.fetchFriends({id, credentials})
|
||||
}
|
||||
|
||||
const fetchFollowers = ({id}) => {
|
||||
return apiService.fetchFollowers({id, credentials})
|
||||
}
|
||||
|
||||
const fetchAllFollowing = ({username}) => {
|
||||
|
@ -44,6 +48,7 @@ const backendInteractorService = (credentials) => {
|
|||
fetchStatus,
|
||||
fetchConversation,
|
||||
fetchFriends,
|
||||
fetchFollowers,
|
||||
followUser,
|
||||
unfollowUser,
|
||||
fetchAllFollowing,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue