From 6f4b35cb9eb04128aedf68d4a1e65681b00ce7d6 Mon Sep 17 00:00:00 2001
From: Ivy Gesare <83957195+Gesare5@users.noreply.github.com>
Date: Tue, 15 Oct 2024 08:52:10 +0300
Subject: [PATCH] [MM-60848] Replace FormattedMarkdownMessage in
'webapp/channels/src/components/integrations/installed_outgoing_webhooks/installed_outgoing_webhooks.tsx'
with FormattedMessage (#28704)
---
.../installed_outgoing_webhooks.test.tsx.snap | 11 ++++++++---
.../installed_outgoing_webhooks.tsx | 10 ++++++----
webapp/channels/src/i18n/en.json | 2 +-
3 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/webapp/channels/src/components/integrations/installed_outgoing_webhooks/__snapshots__/installed_outgoing_webhooks.test.tsx.snap b/webapp/channels/src/components/integrations/installed_outgoing_webhooks/__snapshots__/installed_outgoing_webhooks.test.tsx.snap
index fe6e954b5e..62f60acd12 100644
--- a/webapp/channels/src/components/integrations/installed_outgoing_webhooks/__snapshots__/installed_outgoing_webhooks.test.tsx.snap
+++ b/webapp/channels/src/components/integrations/installed_outgoing_webhooks/__snapshots__/installed_outgoing_webhooks.test.tsx.snap
@@ -240,9 +240,14 @@ exports[`components/integrations/InstalledOutgoingWebhooks should match snapshot
/>
}
emptyTextSearch={
-
}
header={
diff --git a/webapp/channels/src/components/integrations/installed_outgoing_webhooks/installed_outgoing_webhooks.tsx b/webapp/channels/src/components/integrations/installed_outgoing_webhooks/installed_outgoing_webhooks.tsx
index 55873ceb64..048f2cc36f 100644
--- a/webapp/channels/src/components/integrations/installed_outgoing_webhooks/installed_outgoing_webhooks.tsx
+++ b/webapp/channels/src/components/integrations/installed_outgoing_webhooks/installed_outgoing_webhooks.tsx
@@ -14,7 +14,6 @@ import type {ActionResult} from 'mattermost-redux/types/actions';
import BackstageList from 'components/backstage/components/backstage_list';
import ExternalLink from 'components/external_link';
-import FormattedMarkdownMessage from 'components/formatted_markdown_message';
import InstalledOutgoingWebhook, {matchesFilter} from 'components/integrations/installed_outgoing_webhook';
import {Constants, DeveloperLinks} from 'utils/constants';
@@ -185,9 +184,12 @@ export default class InstalledOutgoingWebhooks extends React.PureComponent
}
emptyTextSearch={
- {chunks},
+ }}
/>
}
helpText={
diff --git a/webapp/channels/src/i18n/en.json b/webapp/channels/src/i18n/en.json
index 31f3f9afde..6c1ec77510 100644
--- a/webapp/channels/src/i18n/en.json
+++ b/webapp/channels/src/i18n/en.json
@@ -4002,12 +4002,12 @@
"installed_outgoing_webhooks.add": "Add Outgoing Webhook",
"installed_outgoing_webhooks.delete.confirm": "This action permanently deletes the outgoing webhook and breaks any integrations using it. Are you sure you want to delete it?",
"installed_outgoing_webhooks.empty": "No outgoing webhooks found",
- "installed_outgoing_webhooks.emptySearch": "No outgoing webhooks match **{searchTerm}**",
"installed_outgoing_webhooks.header": "Outgoing Webhooks",
"installed_outgoing_webhooks.help": "Use outgoing webhooks to connect external tools to Mattermost. {buildYourOwn} or visit the {appDirectory} to find self-hosted, third-party apps and integrations.",
"installed_outgoing_webhooks.help.appDirectory": "App Directory",
"installed_outgoing_webhooks.help.buildYourOwn": "Build your own",
"installed_outgoing_webhooks.search": "Search Outgoing Webhooks",
+ "installed_outgoing_webhooks.search.empty": "No outgoing webhooks match {searchTerm}",
"installed_outgoing_webhooks.unknown_channel": "A Private Webhook",
"installedIntegrations.clientId": "Client ID: {clientId}",
"installedIntegrations.clientSecret": "Client Secret: {clientSecret}",