[MM-60812] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/team_channel_settings/team/details/team_profile.tsx' with FormattedMessage (#28608)

* Fix: Replace FormattedMarkdownMessage in file

* fix: update snapshot

* fix: resolve conflicts in en.json file

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
Rita Anene 2024-10-11 08:42:45 +01:00 committed by GitHub
parent 3f59f05f3f
commit 4f496eedb5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 54 additions and 69 deletions

View File

@ -55,24 +55,20 @@ exports[`admin_console/team_channel_settings/team/TeamProfile should match snaps
<div <div
class="row row-bottom-padding" class="row row-bottom-padding"
> >
<span> <b>
<strong> Team Name
Team Name </b>
</strong> :
:
</span>
<br /> <br />
name name
</div> </div>
<div <div
class="row" class="row"
> >
<span> <b>
<strong> Team Description
Team Description </b>
</strong> :
:
</span>
<br /> <br />
<span <span
class="greyed-out" class="greyed-out"
@ -156,24 +152,20 @@ exports[`admin_console/team_channel_settings/team/TeamProfile should match snaps
<div <div
class="row row-bottom-padding" class="row row-bottom-padding"
> >
<span> <b>
<strong> Team Name
Team Name </b>
</strong> :
:
</span>
<br /> <br />
name name
</div> </div>
<div <div
class="row" class="row"
> >
<span> <b>
<strong> Team Description
Team Description </b>
</strong> :
:
</span>
<br /> <br />
<span <span
class="greyed-out" class="greyed-out"
@ -257,24 +249,20 @@ exports[`admin_console/team_channel_settings/team/TeamProfile__Cloud restore sho
<div <div
class="row row-bottom-padding" class="row row-bottom-padding"
> >
<span> <b>
<strong> Team Name
Team Name </b>
</strong> :
:
</span>
<br /> <br />
name name
</div> </div>
<div <div
class="row" class="row"
> >
<span> <b>
<strong> Team Description
Team Description </b>
</strong> :
:
</span>
<br /> <br />
<span <span
class="greyed-out" class="greyed-out"
@ -358,24 +346,20 @@ exports[`admin_console/team_channel_settings/team/TeamProfile__Cloud should matc
<div <div
class="row row-bottom-padding" class="row row-bottom-padding"
> >
<span> <b>
<strong> Team Name
Team Name </b>
</strong> :
:
</span>
<br /> <br />
name name
</div> </div>
<div <div
class="row" class="row"
> >
<span> <b>
<strong> Team Description
Team Description </b>
</strong> :
:
</span>
<br /> <br />
<span <span
class="greyed-out" class="greyed-out"
@ -471,24 +455,20 @@ exports[`admin_console/team_channel_settings/team/TeamProfile__Cloud should matc
<div <div
class="row row-bottom-padding" class="row row-bottom-padding"
> >
<span> <b>
<strong> Team Name
Team Name </b>
</strong> :
:
</span>
<br /> <br />
name name
</div> </div>
<div <div
class="row" class="row"
> >
<span> <b>
<strong> Team Description
Team Description </b>
</strong> :
:
</span>
<br /> <br />
<span <span
class="greyed-out" class="greyed-out"

View File

@ -15,7 +15,6 @@ import {openModal} from 'actions/views/modals';
import useGetUsage from 'components/common/hooks/useGetUsage'; import useGetUsage from 'components/common/hooks/useGetUsage';
import useGetUsageDeltas from 'components/common/hooks/useGetUsageDeltas'; import useGetUsageDeltas from 'components/common/hooks/useGetUsageDeltas';
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
import PricingModal from 'components/pricing_modal'; import PricingModal from 'components/pricing_modal';
import AdminPanel from 'components/widgets/admin_console/admin_panel'; import AdminPanel from 'components/widgets/admin_console/admin_panel';
import TeamIcon from 'components/widgets/team_icon/team_icon'; import TeamIcon from 'components/widgets/team_icon/team_icon';
@ -148,17 +147,23 @@ export function TeamProfile({team, isArchived, onToggleArchive, isDisabled, save
</div> </div>
<div className='team-desc-col'> <div className='team-desc-col'>
<div className='row row-bottom-padding'> <div className='row row-bottom-padding'>
<FormattedMarkdownMessage <FormattedMessage
id='admin.team_settings.team_detail.teamName' id='admin.teamSettings.teamDetail.teamName'
defaultMessage='**Team Name**:' defaultMessage='<b>Team Name</b>:'
values={{
b: (chunks: string) => <b>{chunks}</b>,
}}
/> />
<br/> <br/>
{team.display_name} {team.display_name}
</div> </div>
<div className='row'> <div className='row'>
<FormattedMarkdownMessage <FormattedMessage
id='admin.team_settings.team_detail.teamDescription' id='admin.teamSettings.teamDetail.teamDescription'
defaultMessage='**Team Description**:' defaultMessage='<b>Team Description</b>:'
values={{
b: (chunks: string) => <b>{chunks}</b>,
}}
/> />
<br/> <br/>
{team.description || <span className='greyed-out'>{intl.formatMessage({id: 'admin.team_settings.team_detail.profileNoDescription', defaultMessage: 'No team description added.'})}</span>} {team.description || <span className='greyed-out'>{intl.formatMessage({id: 'admin.team_settings.team_detail.profileNoDescription', defaultMessage: 'No team description added.'})}</span>}

View File

@ -2672,8 +2672,6 @@
"admin.team_settings.team_detail.profileTitle": "Team Profile", "admin.team_settings.team_detail.profileTitle": "Team Profile",
"admin.team_settings.team_detail.syncedGroupsDescription": "Add and remove team members based on their group membership.", "admin.team_settings.team_detail.syncedGroupsDescription": "Add and remove team members based on their group membership.",
"admin.team_settings.team_detail.syncedGroupsTitle": "Synced Groups", "admin.team_settings.team_detail.syncedGroupsTitle": "Synced Groups",
"admin.team_settings.team_detail.teamDescription": "**Team Description**:",
"admin.team_settings.team_detail.teamName": "**Team Name**:",
"admin.team_settings.team_details.add_group": "Add Group", "admin.team_settings.team_details.add_group": "Add Group",
"admin.team_settings.team_details.add_members": "Add Members", "admin.team_settings.team_details.add_members": "Add Members",
"admin.team_settings.team_details.anyoneCanJoin": "Anyone can join this team", "admin.team_settings.team_details.anyoneCanJoin": "Anyone can join this team",
@ -2755,6 +2753,8 @@
"admin.team.userCreationDescription": "When false, the ability to create accounts is disabled, and selecting Create Account displays an error. Applies to Email, OpenID Connect, and OAuth 2.0 user account authentication.", "admin.team.userCreationDescription": "When false, the ability to create accounts is disabled, and selecting Create Account displays an error. Applies to Email, OpenID Connect, and OAuth 2.0 user account authentication.",
"admin.team.userCreationTitle": "Enable Account Creation: ", "admin.team.userCreationTitle": "Enable Account Creation: ",
"admin.teamChannelSettings.usersToBeRemovedModal.title": "<b>{total, number} {total, plural, one {User} other {Users}}</b> To Be Removed", "admin.teamChannelSettings.usersToBeRemovedModal.title": "<b>{total, number} {total, plural, one {User} other {Users}}</b> To Be Removed",
"admin.teamSettings.teamDetail.teamDescription": "<b>Team Description</b>:",
"admin.teamSettings.teamDetail.teamName": "<b>Team Name</b>:",
"admin.trial_banner.trial-request.error": "Trial license could not be retrieved. Visit <link>{trialInfoLink}</link> to request a license.", "admin.trial_banner.trial-request.error": "Trial license could not be retrieved. Visit <link>{trialInfoLink}</link> to request a license.",
"admin.true": "True", "admin.true": "True",
"admin.user_grid.channel_admin": "Channel Admin", "admin.user_grid.channel_admin": "Channel Admin",