Notification
The Notification
is a component for detailed display of notification content, show content when activeNotification is set.Currently only when the notification type is system.friend_request
will show the corresponding style, the future will be more extended. And must be nested as children of Chat to maintain proper functionality.This component does not need to pass any props.
type of notification in notificationList.
- system.friend_request (Friend request notification type)
- system.system.followed (Follow user request notification type)
- system.group_invitation (Group invitation notification type)
- subscription (subscription topic new message notification)
Basic Usage
tip
The component is rendered when activeNotification is system.friend_request
. So you can try sending a friend request in the CreateChannel
component, and the user you requested will have that notification