You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/ts/components/conversation/FriendRequest.md

35 lines
1.3 KiB
Markdown

### Friend Requests
#### Parameters
| Name | Values |
| -------------------- | -------------------------------------------- |
| text | string |
| direction | 'outgoing' \| 'incoming |
| status | 'sending' \| 'sent' \| 'read' \| 'delivered' |
| friendStatus | 'pending' \| 'accepted' \| 'declined' |
| i18n | Localizer |
| onAccept | function |
| onDecline | function |
| onDeleteConversation | function |
| onRetrySend | function |
#### Example
```jsx
<util.ConversationContext theme={util.theme} ios={util.ios}>
<li>
<FriendRequest
text="This is my friend request message!"
direction="outgoing"
status="sending"
friendStatus="pending"
i18n={util.i18n}
onAccept={() => console.log('Accepted friend request')}
onDecline={() => console.log('Declined friend request')}
onDeleteConversation={() => console.log('Delete conversation')}
onRetrySend={() => console.log('Retry sending message')}
/>
</li>
</util.ConversationContext>
```