Skip to main content

LMFeedReportPostDialog

LMFeedReportPostDialog renders the post reporting interface, allowing users to report inappropriate content. It provides a list of reporting reasons and handles the submission of report details to the moderation system.

Props

PropertyTypeDescriptionOptional
closeReportDialog() => voidFunction to close the report dialog
entityIdstringUnique identifier of the entity being reported
entityTypeReportEntityTypeType of entity being reported (post, comment, etc.)
postPostPost data when reporting a post✔️
commentReplyComment data when reporting a comment✔️
replyReplyReply data when reporting a reply✔️

CSS Classnames

ClassnameDescription
lmReportPostWrapper__body__content__typesContainer for report type options
lmReportPostWrapper__body__content__actions--inputInput field styling in report actions
lmReportPostWrapperMain wrapper for the report post dialog
lmReportPostWrapper__header__closeIconClose button icon styling
lmReportPostWrapper__body__contentMain content container of report dialog
lmReportPostWrapper__body__content--textedText content styling in report dialog
lmReportPostWrapper__body__content__actionsContainer for action buttons
lmReportPostWrapper__body__content__actions--btnReportReport button styling
lmReportPostWrapper__headerHeader section of report dialog
lmReportPostWrapper__bodyBody section of report dialog

Example

To customize the component with its classnames, open your base CSS file and override the styles using the classname:

.lmReportPostWrapper__body__content__types {
font-size: 18px;
color: "red";
}

Reference

For reference, check out this file