mirror of
https://github.com/wassname/talk.git
synced 2026-08-03 13:20:59 +08:00
Implement TODO for rejected message when replying (#3034)
Implements the proper callout for when a user submits a comment with a banned word when replying to another comment. CORL-1191
This commit is contained in:
@@ -23,8 +23,22 @@ function getMessage(
|
||||
case "RETRY":
|
||||
throw new Error(`Invalid status ${status}`);
|
||||
case "REJECTED":
|
||||
// TODO: Show a different message when rejected?
|
||||
// falls through
|
||||
return (
|
||||
<CallOut
|
||||
className={cn(inReviewClassName)}
|
||||
color="negative"
|
||||
icon={<Icon size="sm">error</Icon>}
|
||||
onClose={onDismiss}
|
||||
titleWeight="semiBold"
|
||||
title={
|
||||
<Localized id="comments-submitStatus-submittedAndRejected">
|
||||
<span>
|
||||
This comment has been rejected for violating our guidelines
|
||||
</span>
|
||||
</Localized>
|
||||
}
|
||||
/>
|
||||
);
|
||||
case "IN_REVIEW":
|
||||
return (
|
||||
<CallOut
|
||||
|
||||
Reference in New Issue
Block a user