[MM-60814] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/authorize/authorize.tsx' with FormattedMessage (#28614)

This commit is contained in:
Rita Anene 2024-10-11 16:25:59 +01:00 committed by GitHub
parent 3811dccd79
commit 7627a68d85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 13 deletions

View File

@ -10,7 +10,6 @@ import type {OAuthApp} from '@mattermost/types/integrations';
import type {ActionResult} from 'mattermost-redux/types/actions';
import FormError from 'components/form_error';
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
import icon50 from 'images/icon50x50.png';
import {getHistory} from 'utils/browser_history';
@ -130,30 +129,33 @@ export default class Authorize extends React.PureComponent<Props, State> {
/>
</div>
<div className='text'>
<FormattedMarkdownMessage
id='authorize.title'
defaultMessage='Authorize **{appName}** to Connect to Your **Mattermost** User Account'
<FormattedMessage
id='authorize.connectTitle'
defaultMessage='Authorize <b>{appName}</b> to Connect to Your <b>Mattermost</b> User Account'
values={{
appName: app.name,
b: (chunks: string) => <b>{chunks}</b>,
}}
/>
</div>
</div>
<p>
<FormattedMarkdownMessage
id='authorize.app'
defaultMessage='The app **{appName}** would like the ability to access and modify your basic information.'
<FormattedMessage
id='authorize.modificationAccess'
defaultMessage='The app <b>{appName}</b> would like the ability to access and modify your basic information.'
values={{
appName: app.name,
b: (chunks: string) => <b>{chunks}</b>,
}}
/>
</p>
<h2 className='prompt__allow'>
<FormattedMarkdownMessage
id='authorize.access'
defaultMessage='Allow **{appName}** access?'
<FormattedMessage
id='authorize.allowAccess'
defaultMessage='Allow <b>{appName}</b> access?'
values={{
appName: app.name,
b: (chunks: string) => <b>{chunks}</b>,
}}
/>
</h2>

View File

@ -3030,11 +3030,11 @@
"audit_table.userId": "User ID",
"audit_table.userRemoved": "Removed {username} to the {channelName} channel",
"audit_table.verified": "Successfully verified your email address",
"authorize.access": "Allow **{appName}** access?",
"authorize.allow": "Allow",
"authorize.app": "The app **{appName}** would like the ability to access and modify your basic information.",
"authorize.allowAccess": "Allow <b>{appName}</b> access?",
"authorize.connectTitle": "Authorize <b>{appName}</b> to Connect to Your <b>Mattermost</b> User Account",
"authorize.deny": "Deny",
"authorize.title": "Authorize **{appName}** to Connect to Your **Mattermost** User Account",
"authorize.modificationAccess": "The app <b>{appName}</b> would like the ability to access and modify your basic information.",
"avatar.alt": "{username} profile image",
"avatars.overflowUnnamedOnly": "{overflowUnnamedCount, plural, =1 {one other} other {# others}}",
"avatars.overflowUsers": "{overflowUnnamedCount, plural, =0 {{names}} =1 {{names} and one other} other {{names} and # others}}",