[MM-60848] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/integrations/installed_outgoing_webhooks/installed_outgoing_webhooks.tsx' with FormattedMessage (#28704)

Этот коммит содержится в:
Ivy Gesare
2024-10-15 08:52:10 +03:00
коммит произвёл GitHub
родитель ff6de4bdab
Коммит 6f4b35cb9e
3 изменённых файлов: 15 добавлений и 8 удалений

Просмотреть файл

@@ -240,9 +240,14 @@ exports[`components/integrations/InstalledOutgoingWebhooks should match snapshot
/>
}
emptyTextSearch={
<FormattedMarkdownMessage
defaultMessage="No outgoing webhooks match {searchTerm}"
id="installed_outgoing_webhooks.emptySearch"
<Memo(MemoizedFormattedMessage)
defaultMessage="No outgoing webhooks match <b>{searchTerm}</b>"
id="installed_outgoing_webhooks.search.empty"
values={
Object {
"b": [Function],
}
}
/>
}
header={

Просмотреть файл

@@ -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<Props
/>
}
emptyTextSearch={
<FormattedMarkdownMessage
id='installed_outgoing_webhooks.emptySearch'
defaultMessage='No outgoing webhooks match {searchTerm}'
<FormattedMessage
id='installed_outgoing_webhooks.search.empty'
defaultMessage='No outgoing webhooks match <b>{searchTerm}</b>'
values={{
b: (chunks: string) => <b>{chunks}</b>,
}}
/>
}
helpText={

Просмотреть файл

@@ -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 <b>{searchTerm}</b>",
"installed_outgoing_webhooks.unknown_channel": "A Private Webhook",
"installedIntegrations.clientId": "Client ID: <b>{clientId}</b>",
"installedIntegrations.clientSecret": "Client Secret: <b>{clientSecret}</b>",