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:
Nick Funk
2020-07-20 16:44:49 +00:00
committed by GitHub
parent 536e804d61
commit 1a9bd27236
@@ -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