mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-60829] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/unarchive_channel_modal/unarchive_channel_modal.tsx' with FormattedMessage (#28730)
This commit is contained in:
parent
2c139a293b
commit
cd43bac181
@ -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",
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user