From 1a9bd272367109dbc7dc7b3bf32f234f212ec4d6 Mon Sep 17 00:00:00 2001 From: Nick Funk Date: Mon, 20 Jul 2020 10:44:49 -0600 Subject: [PATCH] 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 --- .../Comments/Comment/ReplyEditSubmitStatus.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/core/client/stream/tabs/Comments/Comment/ReplyEditSubmitStatus.tsx b/src/core/client/stream/tabs/Comments/Comment/ReplyEditSubmitStatus.tsx index f4d081116..05e9ef822 100644 --- a/src/core/client/stream/tabs/Comments/Comment/ReplyEditSubmitStatus.tsx +++ b/src/core/client/stream/tabs/Comments/Comment/ReplyEditSubmitStatus.tsx @@ -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 ( + error} + onClose={onDismiss} + titleWeight="semiBold" + title={ + + + This comment has been rejected for violating our guidelines + + + } + /> + ); case "IN_REVIEW": return (