From 035f3c14f152673d30a3a7510f0547bb7714f883 Mon Sep 17 00:00:00 2001 From: Zubair Imtiaz <106450046+ZubairImtiaz3@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:50:04 +0500 Subject: [PATCH] [MM-60833] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/group_settings/group_details/group_users.tsx' with FormattedMessage (#28619) --- .../__snapshots__/group_users.test.tsx.snap | 64 +++++++++---------- .../group_details/group_users.tsx | 18 ++++-- webapp/channels/src/i18n/en.json | 2 +- 3 files changed, 44 insertions(+), 40 deletions(-) diff --git a/webapp/channels/src/components/admin_console/group_settings/group_details/__snapshots__/group_users.test.tsx.snap b/webapp/channels/src/components/admin_console/group_settings/group_details/__snapshots__/group_users.test.tsx.snap index 258b77e56d..87ec290b5a 100644 --- a/webapp/channels/src/components/admin_console/group_settings/group_details/__snapshots__/group_users.test.tsx.snap +++ b/webapp/channels/src/components/admin_console/group_settings/group_details/__snapshots__/group_users.test.tsx.snap @@ -7,12 +7,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
- @@ -233,12 +233,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
- @@ -459,12 +459,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
- @@ -685,12 +685,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
- @@ -871,12 +871,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
- @@ -1097,12 +1097,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
- @@ -1139,12 +1139,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
- @@ -1365,12 +1365,12 @@ exports[`components/admin_console/group_settings/group_details/GroupUsers should
- diff --git a/webapp/channels/src/components/admin_console/group_settings/group_details/group_users.tsx b/webapp/channels/src/components/admin_console/group_settings/group_details/group_users.tsx index fe3f9a2f84..96bb7ed406 100644 --- a/webapp/channels/src/components/admin_console/group_settings/group_details/group_users.tsx +++ b/webapp/channels/src/components/admin_console/group_settings/group_details/group_users.tsx @@ -3,18 +3,16 @@ import React from 'react'; import {FormattedMessage} from 'react-intl'; +import {Link} from 'react-router-dom'; import type {UserProfile} from '@mattermost/types/users'; import type {ActionResult} from 'mattermost-redux/types/actions'; import GroupUsersRow from 'components/admin_console/group_settings/group_details/group_users_row'; -import FormattedMarkdownMessage from 'components/formatted_markdown_message'; import NextIcon from 'components/widgets/icons/fa_next_icon'; import PreviousIcon from 'components/widgets/icons/fa_previous_icon'; -import {getSiteURL} from 'utils/url'; - const GROUP_MEMBERS_PAGE_SIZE = 20; type Props = { @@ -160,12 +158,18 @@ export default class GroupUsers extends React.PureComponent { return (
- Click here to view' } - values={{siteURL: getSiteURL()}} + values={{ + a: (chunks: string) => ( + + {chunks} + + ), + }} />
diff --git a/webapp/channels/src/i18n/en.json b/webapp/channels/src/i18n/en.json index 4deab3715f..da8cff3cc6 100644 --- a/webapp/channels/src/i18n/en.json +++ b/webapp/channels/src/i18n/en.json @@ -1090,7 +1090,7 @@ "admin.group_settings.group_profile.group_teams_and_channels.assignedRoles": "Assigned Roles", "admin.group_settings.group_profile.group_teams_and_channels.name": "Name", "admin.group_settings.group_profile.group_teams_and_channels.type": "Type", - "admin.group_settings.group_profile.group_users.ldapConnector": "AD/LDAP Connector is configured to sync and manage this group and its users. [Click here to view]({siteURL}/admin_console/authentication/ldap)", + "admin.group_settings.group_profile.group_users.ldapConnectorText": "AD/LDAP Connector is configured to sync and manage this group and its users. Click here to view", "admin.group_settings.group_row.configure": "Configure", "admin.group_settings.group_row.edit": "Edit", "admin.group_settings.group_row.link_failed": "Link failed",