[MM-60829] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/unarchive_channel_modal/unarchive_channel_modal.tsx' with FormattedMessage (#28730)

This commit is contained in:
Michael 2024-10-17 07:45:18 +01:00 committed by GitHub
parent 2c139a293b
commit cd43bac181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 9 deletions

View File

@ -54,11 +54,12 @@ exports[`components/unarchive_channel_modal should match snapshot for unarchive_
<div
className="alert alert-danger"
>
<FormattedMarkdownMessage
defaultMessage="Are you sure you wish to unarchive the **{display_name}** channel?"
id="unarchive_channel.viewArchived.question"
<MemoizedFormattedMessage
defaultMessage="Are you sure you wish to unarchive the <b>{display_name}</b> channel?"
id="unarchiveChannelModal.viewArchived.question"
values={
Object {
"b": [Function],
"display_name": "testing",
}
}

View File

@ -9,8 +9,6 @@ import type {Channel} from '@mattermost/types/channels';
import type {ActionResult} from 'mattermost-redux/types/actions';
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
import Constants from 'utils/constants';
type Props = {
@ -70,11 +68,12 @@ export default class UnarchiveChannelModal extends React.PureComponent<Props, St
</Modal.Header>
<Modal.Body>
<div className='alert alert-danger'>
<FormattedMarkdownMessage
id='unarchive_channel.viewArchived.question'
defaultMessage={'Are you sure you wish to unarchive the **{display_name}** channel?'}
<FormattedMessage
id='unarchiveChannelModal.viewArchived.question'
defaultMessage={'Are you sure you wish to unarchive the <b>{display_name}</b> channel?'}
values={{
display_name: this.props.channel.display_name,
b: (chunks: string) => <b>{chunks}</b>,
}}
/>
</div>

View File

@ -5343,7 +5343,7 @@
"unarchive_channel.cancel": "Cancel",
"unarchive_channel.confirm": "Confirm UNARCHIVE Channel",
"unarchive_channel.del": "Unarchive",
"unarchive_channel.viewArchived.question": "Are you sure you wish to unarchive the **{display_name}** channel?",
"unarchiveChannelModal.viewArchived.question": "Are you sure you wish to unarchive the <b>{display_name}</b> channel?",
"update_command.confirm": "Edit Slash Command",
"update_command.question": "Your changes may break the existing slash command. Are you sure you would like to update it?",
"update_command.update": "Update",