[MM-60810] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/permission_schemes_settings/edit_post_time_limit_modal/edit_post_time_limit_modal.tsx' with FormattedMessage (#28611)

This commit is contained in:
Rita Anene 2024-10-11 12:52:16 +01:00 committed by GitHub
parent 34c8dd5504
commit c8b4c6d7b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 6 deletions

View File

@ -10,8 +10,6 @@ import type {DeepPartial} from '@mattermost/types/utilities';
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';
const INT32_MAX = 2147483647; const INT32_MAX = 2147483647;
@ -87,9 +85,12 @@ export default function EditPostTimeLimitModal(props: Props) {
</Modal.Title> </Modal.Title>
</Modal.Header> </Modal.Header>
<Modal.Body> <Modal.Body>
<FormattedMarkdownMessage <FormattedMessage
id='edit_post.time_limit_modal.description' id='editPost.timeLimitModal.description'
defaultMessage='Setting a time limit **applies to all users** who have the "Edit Post" permissions in any permission scheme.' defaultMessage='Setting a time limit <b>applies to all users</b> who have the "Edit Post" permissions in any permission scheme.'
values={{
b: (chunks: string) => <b>{chunks}</b>,
}}
/> />
<div className='pt-3'> <div className='pt-3'>
<div className='pt-3'> <div className='pt-3'>

View File

@ -3604,7 +3604,6 @@
"edit_post.no_notification_trigger_on_mention": "Editing this message with an '@mention' will not notify the recipient.", "edit_post.no_notification_trigger_on_mention": "Editing this message with an '@mention' will not notify the recipient.",
"edit_post.time_limit_button.for_n_seconds": "For {n} seconds", "edit_post.time_limit_button.for_n_seconds": "For {n} seconds",
"edit_post.time_limit_button.no_limit": "Anytime", "edit_post.time_limit_button.no_limit": "Anytime",
"edit_post.time_limit_modal.description": "Setting a time limit **applies to all users** who have the \"Edit Post\" permissions in any permission scheme.",
"edit_post.time_limit_modal.invalid_time_limit": "Invalid time limit", "edit_post.time_limit_modal.invalid_time_limit": "Invalid time limit",
"edit_post.time_limit_modal.option_label_anytime": "Anytime", "edit_post.time_limit_modal.option_label_anytime": "Anytime",
"edit_post.time_limit_modal.option_label_time_limit.postinput": "seconds after posting", "edit_post.time_limit_modal.option_label_time_limit.postinput": "seconds after posting",
@ -3612,6 +3611,7 @@
"edit_post.time_limit_modal.save_button": "Save Edit Time", "edit_post.time_limit_modal.save_button": "Save Edit Time",
"edit_post.time_limit_modal.subscript": "Set the length of time users have to edit their messages after posting.", "edit_post.time_limit_modal.subscript": "Set the length of time users have to edit their messages after posting.",
"edit_post.time_limit_modal.title": "Configure Global Edit Post Time Limit", "edit_post.time_limit_modal.title": "Configure Global Edit Post Time Limit",
"editPost.timeLimitModal.description": "Setting a time limit <b>applies to all users</b> who have the \"Edit Post\" permissions in any permission scheme.",
"email_verify.almost": "Youre almost done!", "email_verify.almost": "Youre almost done!",
"email_verify.failed": "Failed to send verification email", "email_verify.failed": "Failed to send verification email",
"email_verify.notVerifiedBody": "Please verify your email address. Check your inbox for an email.", "email_verify.notVerifiedBody": "Please verify your email address. Check your inbox for an email.",