-
Notifications
You must be signed in to change notification settings - Fork 12
[Component] Friends
Shawn Clake edited this page Feb 6, 2017
·
1 revision
- Send friend request
- Delete friend
- Block user - Might be moved to a different component
- Visit profiles
- Accept friend request
- Decline friend request
- Display friends list
- Display friend requests
- type() : propType Returns whether we want to render a friends list or a friend request list
- friendsList() : UserCollection Returns a list of a users friends
- friendRequests() : UserCollection Returns a list of friend requests for the logged in user
- onDelete(post userId) Removes a friend from the logged in users friends list
- onBlock(post userId) Blocks a user from the logged in users friends list
- onVisitProfile(prop profilePage) Redirects to a users profile page
- onAccept(post userId) Accepts a friend request
- onDecline(post userId) Declines a friend request
- onRequest(post userId) Sends a friend request
- Add the component to a page and use the inspector to choose an output type.
- You can also use the AJAX handlers directly if you would like to utilize them in your own plugin.
Current output types:
- Friends list
- Friend requests
UserExtended by Shawn Clake with contributions from Quinn Bast