[MM-60818] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/delete_category_modal/delete_category_modal.tsx' with FormattedMessage (#28607)

This commit is contained in:
Arya Khochare 2024-10-11 19:04:45 +05:30 committed by GitHub
parent 428b38efbb
commit 0e31f6226c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -7,8 +7,6 @@ import {FormattedMessage, defineMessages, useIntl} from 'react-intl';
import {GenericModal} from '@mattermost/components';
import type {ChannelCategory} from '@mattermost/types/channel_categories';
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
import '../category_modal.scss';
type Props = {
@ -48,11 +46,12 @@ export default function DeleteCategoryModal(props: Props) {
confirmButtonClassName={'delete'}
>
<span className='delete-category__helpText'>
<FormattedMarkdownMessage
<FormattedMessage
id='delete_category_modal.helpText'
defaultMessage="Channels in **{category_name}** will move back to the Channels and Direct messages categories. You're not removed from any channels."
defaultMessage="Channels in <b>{category_name}</b> will move back to the Channels and Direct messages categories. You're not removed from any channels."
values={{
category_name: props.category.display_name,
b: (chunks: string) => <b>{chunks}</b>,
}}
/>
</span>

View File

@ -3515,7 +3515,7 @@
"deactivate_member_modal.title": "Deactivate {username}",
"delete_category_modal.delete": "Delete",
"delete_category_modal.deleteCategory": "Delete this category?",
"delete_category_modal.helpText": "Channels in **{category_name}** will move back to the Channels and Direct messages categories. You're not removed from any channels.",
"delete_category_modal.helpText": "Channels in <b>{category_name}</b> will move back to the Channels and Direct messages categories. You're not removed from any channels.",
"delete_channel.cancel": "Cancel",
"delete_channel.confirm": "Confirm ARCHIVE Channel",
"delete_channel.del": "Archive",