DefaultActions
FeedListDefaultActions
Key | Type | Description | Optional |
---|---|---|---|
deletePost | (id: string) => Promise<void> | Deletes a post by its ID | |
pinPost | (id: string) => Promise<void> | Pins a post by its ID | |
likePost | (id: string) => Promise<void> | Likes a post by its ID | |
getNextPage | () => Promise<void> | Fetches the next page of posts |
FeedPostDetailsDefaultActions
Key | Type | Description | Optional |
---|---|---|---|
addNewComment | (comment: Reply, userMap: Record<string, User>) => void | Adds a new comment to the post. | No |
removeAComment | (id: string) => void | Removes a comment by its ID. | No |
updateReplyOnPostReply | (id: string) => void | Updates a reply on a post reply. | No |
updateReply | (comment: Reply, usersMap: Record<string, User>) => void | Updates a reply with new information. | No |
likeReply | (id: string) => Promise<void> | Likes a reply by its ID. | No |
likePost | (id: string) => Promise<void> | Likes a post by its ID. | No |
pinPost | (id: string) => Promise<void> | Pins a post by its ID. | No |
deletePost | (id: string) => Promise<void> | Deletes a post by its ID. | No |
getNextPage | () => Promise<void> | Retrieves the next page of posts. | No |
NotificationsDefaultActions
Key | Type | Description | Optional |
---|---|---|---|
handleNotification | (id: string) => void | Handles a notification by its ID. | No |
getNotifications | () => Promise<void> | Retrieves notifications asynchronously. | No |
TopicsDefaultAction
Key | Type | Description | Optional |
---|---|---|---|
setSearchKey | React.Dispatch<string> | Dispatch function to set the search key. | No |
updateCheckedTopics | (topic: Topic) => void | Function to update the checked topics based on a topic. | No |
clearAllCheckedTopics | () => void | Function to clear all checked topics. | No |
getNextPage | () => Promise<void> | Function to fetch the next page of topics. | No |
ModerationDefaultActions
Key | Type | Description | Optional |
---|---|---|---|
selectTab | (tab: string) => void | Selects a moderation tab. | No |
handleOnApprovedPostClicked | (reportIds: number[]) => Promise<void> | Handles clicking to approve a post. | No |
handleOnRejectedPostClicked | (reportIds: number[]) => Promise<void> | Handles clicking to reject a post. | No |
onApprovedCallback | (groupReport: GroupReport) => Promise<void> | Callback triggered when a report is approved. | No |
onRejectedCallback | (groupReport: GroupReport, postId: string) => Promise<void> | Callback triggered when a report is rejected. | No |
editMemberPermissionsHandler | (uuid: string) => Promise<void> | Handles editing member permissions. | No |
updateMemberRightsHandler | () => Promise<void> | Handles updating member rights. | No |
setIsEditPermissionDialogOpen | React.Dispatch<React.SetStateAction<boolean>> | Controls visibility of the edit permissions dialog. | No |
setModifiedRights | React.Dispatch<React.SetStateAction<MemberRights[] >> | Sets the modified member rights. | No |
setCustomTitle | React.Dispatch<React.SetStateAction<string>> | Sets a custom title. | No |
setCurrentReport | React.Dispatch<React.SetStateAction<GroupReport | null>> | Sets the current report being moderated. | No |
handleHeaderLeadingTap | () => void | Handles tap action on the header leading element. | No |
handleHeaderTextTap | () => void | Handles tap action on the header text. | No |
handleHeaderTrailingTap | () => void | Handles tap action on the header trailing element. | No |
RepliesDefaultAction
Key | Type | Description | Optional |
---|---|---|---|
deleteReply | (id: string) => Promise<void> | Deletes a reply by its ID. | No |
likeReply | (id: string) => Promise<void> | Likes a reply by its ID. | No |
updateReply | (comment: Reply, usersMap: Record<string, User>) => void | Updates a reply with new information. | No |
PostCreationDefaultActions
Key | Type | Description | Optional |
---|---|---|---|
postFeed | (customWidgets?: Record<string, any>[]) => Promise<void> | Function to post a new feed with optional custom widgets. | No |
editPost | (customWidgets?: Record<string, any>[]) => Promise<void> | Function to edit an existing post with optional custom widgets. | No |