[MM-60829] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/unarchive_channel_modal/unarchive_channel_modal.tsx' with FormattedMessage (#28730)
Этот коммит содержится в:
@@ -54,11 +54,12 @@ exports[`components/unarchive_channel_modal should match snapshot for unarchive_
|
|||||||
<div
|
<div
|
||||||
className="alert alert-danger"
|
className="alert alert-danger"
|
||||||
>
|
>
|
||||||
<FormattedMarkdownMessage
|
<MemoizedFormattedMessage
|
||||||
defaultMessage="Are you sure you wish to unarchive the **{display_name}** channel?"
|
defaultMessage="Are you sure you wish to unarchive the <b>{display_name}</b> channel?"
|
||||||
id="unarchive_channel.viewArchived.question"
|
id="unarchiveChannelModal.viewArchived.question"
|
||||||
values={
|
values={
|
||||||
Object {
|
Object {
|
||||||
|
"b": [Function],
|
||||||
"display_name": "testing",
|
"display_name": "testing",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ import type {Channel} from '@mattermost/types/channels';
|
|||||||
|
|
||||||
import type {ActionResult} from 'mattermost-redux/types/actions';
|
import type {ActionResult} from 'mattermost-redux/types/actions';
|
||||||
|
|
||||||
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
|
|
||||||
|
|
||||||
import Constants from 'utils/constants';
|
import Constants from 'utils/constants';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -70,11 +68,12 @@ export default class UnarchiveChannelModal extends React.PureComponent<Props, St
|
|||||||
</Modal.Header>
|
</Modal.Header>
|
||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
<div className='alert alert-danger'>
|
<div className='alert alert-danger'>
|
||||||
<FormattedMarkdownMessage
|
<FormattedMessage
|
||||||
id='unarchive_channel.viewArchived.question'
|
id='unarchiveChannelModal.viewArchived.question'
|
||||||
defaultMessage={'Are you sure you wish to unarchive the **{display_name}** channel?'}
|
defaultMessage={'Are you sure you wish to unarchive the <b>{display_name}</b> channel?'}
|
||||||
values={{
|
values={{
|
||||||
display_name: this.props.channel.display_name,
|
display_name: this.props.channel.display_name,
|
||||||
|
b: (chunks: string) => <b>{chunks}</b>,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -5343,7 +5343,7 @@
|
|||||||
"unarchive_channel.cancel": "Cancel",
|
"unarchive_channel.cancel": "Cancel",
|
||||||
"unarchive_channel.confirm": "Confirm UNARCHIVE Channel",
|
"unarchive_channel.confirm": "Confirm UNARCHIVE Channel",
|
||||||
"unarchive_channel.del": "Unarchive",
|
"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.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.question": "Your changes may break the existing slash command. Are you sure you would like to update it?",
|
||||||
"update_command.update": "Update",
|
"update_command.update": "Update",
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user