[MM-60817] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/convert_channel_modal/convert_channel_modal.tsx' with FormattedMessage (#28642)

This commit is contained in:
goooov 2024-10-11 19:25:09 +05:30 committed by GitHub
parent adeb1e9da1
commit 2780b87d00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View File

@ -9,8 +9,6 @@ import {General} from 'mattermost-redux/constants';
import {trackEvent} from 'actions/telemetry_actions.jsx'; import {trackEvent} from 'actions/telemetry_actions.jsx';
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
import Constants from 'utils/constants'; import Constants from 'utils/constants';
type Props = { type Props = {
@ -84,11 +82,12 @@ export default class ConvertChannelModal extends React.PureComponent<Props, Stat
</Modal.Header> </Modal.Header>
<Modal.Body> <Modal.Body>
<p> <p>
<FormattedMarkdownMessage <FormattedMessage
id='convert_channel.question1' id='convertChannel.question1'
defaultMessage='When you convert **{display_name}** to a private channel, history and membership are preserved. Publicly shared files remain accessible to anyone with the link. Membership in a private channel is by invitation only.' defaultMessage='When you convert <b>{display_name}</b> to a private channel, history and membership are preserved. Publicly shared files remain accessible to anyone with the link. Membership in a private channel is by invitation only.'
values={{ values={{
display_name: channelDisplayName, display_name: channelDisplayName,
b: (chunks: string) => <b>{chunks}</b>,
}} }}
/> />
</p> </p>
@ -99,11 +98,12 @@ export default class ConvertChannelModal extends React.PureComponent<Props, Stat
/> />
</p> </p>
<p> <p>
<FormattedMarkdownMessage <FormattedMessage
id='convert_channel.question3' id='convertChannel.question3'
defaultMessage='Are you sure you want to convert **{display_name}** to a private channel?' defaultMessage='Are you sure you want to convert <b>{display_name}</b> to a private channel?'
values={{ values={{
display_name: channelDisplayName, display_name: channelDisplayName,
b: (chunks: string) => <b>{chunks}</b>,
}} }}
/> />
</p> </p>

View File

@ -3412,10 +3412,10 @@
"confirm_switch_to_yearly_modal.title": "Confirm switch to annual plan", "confirm_switch_to_yearly_modal.title": "Confirm switch to annual plan",
"convert_channel.cancel": "No, cancel", "convert_channel.cancel": "No, cancel",
"convert_channel.confirm": "Yes, convert to private channel", "convert_channel.confirm": "Yes, convert to private channel",
"convert_channel.question1": "When you convert **{display_name}** to a private channel, history and membership are preserved. Publicly shared files remain accessible to anyone with the link. Membership in a private channel is by invitation only.",
"convert_channel.question2": "The change is permanent and cannot be undone.", "convert_channel.question2": "The change is permanent and cannot be undone.",
"convert_channel.question3": "Are you sure you want to convert **{display_name}** to a private channel?",
"convert_channel.title": "Convert {display_name} to a Private Channel?", "convert_channel.title": "Convert {display_name} to a Private Channel?",
"convertChannel.question1": "When you convert <b>{display_name}</b> to a private channel, history and membership are preserved. Publicly shared files remain accessible to anyone with the link. Membership in a private channel is by invitation only.",
"convertChannel.question3": "Are you sure you want to convert <b>{display_name}</b> to a private channel?",
"copied.message": "Copied", "copied.message": "Copied",
"copy_text.copied": "Copied", "copy_text.copied": "Copied",
"copy_text.copy": "Copy", "copy_text.copy": "Copy",