From fa3d442b36e27f8e42e17ba022c2b74900397b01 Mon Sep 17 00:00:00 2001 From: Tessa Thornton Date: Tue, 1 Oct 2019 18:24:56 -0400 Subject: [PATCH] [CORL-624] add note about word list case-sensitivity (#2607) * add note about word list case-sensitivity: * fix: removed unused keys * fix: removed unused components * fix: linting and key fix --- .../sections/WordList/BannedWordListConfig.tsx | 12 +++--------- .../sections/WordList/SuspectWordListConfig.tsx | 12 +++--------- .../configure/__snapshots__/wordList.spec.tsx.snap | 4 ++-- src/locales/da/admin.ftl | 4 ---- src/locales/en-US/admin.ftl | 8 ++++---- src/locales/pt-BR/admin.ftl | 8 -------- 6 files changed, 12 insertions(+), 36 deletions(-) diff --git a/src/core/client/admin/routes/Configure/sections/WordList/BannedWordListConfig.tsx b/src/core/client/admin/routes/Configure/sections/WordList/BannedWordListConfig.tsx index 03298b38a..fc51cee71 100644 --- a/src/core/client/admin/routes/Configure/sections/WordList/BannedWordListConfig.tsx +++ b/src/core/client/admin/routes/Configure/sections/WordList/BannedWordListConfig.tsx @@ -1,7 +1,6 @@ import { Localized } from "fluent-react/compat"; import React, { FunctionComponent } from "react"; -import { ExternalLink } from "coral-framework/lib/i18n/components"; import { FormField, HorizontalGutter, @@ -39,15 +38,10 @@ const BannedWordListConfig: FunctionComponent = ({ disabled }) => ( Banned word list - } - externalLink={} - > + - Separate banned words or phrases with a new line. Attempting to copy - and paste a comma separated list? Learn how to convert your list to - a new line separated list. + Separate banned words or phrases with a new line. Words/phrases are + not case sensitive.
diff --git a/src/core/client/admin/routes/Configure/sections/WordList/SuspectWordListConfig.tsx b/src/core/client/admin/routes/Configure/sections/WordList/SuspectWordListConfig.tsx index 941f968ae..e93dfd21e 100644 --- a/src/core/client/admin/routes/Configure/sections/WordList/SuspectWordListConfig.tsx +++ b/src/core/client/admin/routes/Configure/sections/WordList/SuspectWordListConfig.tsx @@ -1,7 +1,6 @@ import { Localized } from "fluent-react/compat"; import React, { FunctionComponent } from "react"; -import { ExternalLink } from "coral-framework/lib/i18n/components"; import { FormField, HorizontalGutter, @@ -43,15 +42,10 @@ const SuspectWordListConfig: FunctionComponent = ({ disabled }) => ( Suspect word list - } - externalLink={} - > + - Separate suspect words or phrases with a new line. Attempting to - copy and paste a comma separated list? Learn how to convert your - list to a new line separated list. + Separate suspect words or phrases with a new line. Words/phrases are + not case sensitive.
diff --git a/src/core/client/admin/test/configure/__snapshots__/wordList.spec.tsx.snap b/src/core/client/admin/test/configure/__snapshots__/wordList.spec.tsx.snap index a0634b680..597833a33 100644 --- a/src/core/client/admin/test/configure/__snapshots__/wordList.spec.tsx.snap +++ b/src/core/client/admin/test/configure/__snapshots__/wordList.spec.tsx.snap @@ -150,7 +150,7 @@ exports[`renders configure wordList 1`] = `

- Separate banned words or phrases with a new line. + Separate banned words or phrases with a new line. Words/phrases are not case sensitive.