From 533d7633e100ac9581395a421c1cd2b9285ee5b2 Mon Sep 17 00:00:00 2001 From: Nick Funk Date: Tue, 14 Jan 2020 15:26:33 -0700 Subject: [PATCH] [CORL-846] Restructure the slack comment message format (#2794) * Restructure the slack comment message format CORL-846 * feat: removed all comments Co-authored-by: Wyatt Johnson --- .../Configure/sections/Slack/SlackChannel.tsx | 138 +++++++----------- .../sections/Slack/SlackConfigContainer.tsx | 3 - src/core/server/graph/schema/schema.graphql | 10 -- src/core/server/services/slack/publisher.ts | 84 +++++------ src/locales/en-US/admin.ftl | 1 - 5 files changed, 90 insertions(+), 146 deletions(-) diff --git a/src/core/client/admin/routes/Configure/sections/Slack/SlackChannel.tsx b/src/core/client/admin/routes/Configure/sections/Slack/SlackChannel.tsx index 6773c9651..2842e163e 100644 --- a/src/core/client/admin/routes/Configure/sections/Slack/SlackChannel.tsx +++ b/src/core/client/admin/routes/Configure/sections/Slack/SlackChannel.tsx @@ -151,93 +151,63 @@ const SlackChannel: FunctionComponent = ({ - - {({ input: { value: allCommentsValue } }) => ( -
- + + {({ input }) => ( + - {({ input }) => ( - - - All Comments - - - )} - - + Reported Comments + + + )} + + + {({ input }) => ( + - {({ input }) => ( - - - Reported Comments - - - )} - - + Pending Comments + + + )} + + + {({ input }) => ( + - {({ input }) => ( - - - Pending Comments - - - )} - - - {({ input }) => ( - - - Featured Comments - - - )} - -
- )} -
+ + Featured Comments + + + )} + +