diff --git a/webapp/channels/src/components/add_users_to_group_modal/__snapshots__/add_users_to_group_modal.test.tsx.snap b/webapp/channels/src/components/add_users_to_group_modal/__snapshots__/add_users_to_group_modal.test.tsx.snap index 07dab9c521..f21647d07e 100644 --- a/webapp/channels/src/components/add_users_to_group_modal/__snapshots__/add_users_to_group_modal.test.tsx.snap +++ b/webapp/channels/src/components/add_users_to_group_modal/__snapshots__/add_users_to_group_modal.test.tsx.snap @@ -37,18 +37,12 @@ exports[`component/add_users_to_group_modal should match snapshot 1`] = ` closeLabel="Close" > diff --git a/webapp/channels/src/components/add_users_to_group_modal/add_users_to_group_modal.tsx b/webapp/channels/src/components/add_users_to_group_modal/add_users_to_group_modal.tsx index 0553ce2cb6..991551a50f 100644 --- a/webapp/channels/src/components/add_users_to_group_modal/add_users_to_group_modal.tsx +++ b/webapp/channels/src/components/add_users_to_group_modal/add_users_to_group_modal.tsx @@ -3,7 +3,7 @@ import React, {useState, useCallback, useMemo} from 'react'; import {Modal} from 'react-bootstrap'; -import {FormattedMessage} from 'react-intl'; +import {FormattedMessage, useIntl} from 'react-intl'; import type {Group} from '@mattermost/types/groups'; import type {UserProfile} from '@mattermost/types/users'; @@ -11,9 +11,7 @@ import type {UserProfile} from '@mattermost/types/users'; import type {ActionResult} from 'mattermost-redux/types/actions'; import AddUserToGroupMultiSelect from 'components/add_user_to_group_multiselect'; -import LocalizedIcon from 'components/localized_icon'; -import {t} from 'utils/i18n'; import {localizeMessage} from 'utils/utils'; import type {ModalData} from 'types/actions'; @@ -36,6 +34,7 @@ const AddUsersToGroupModal = (props: Props) => { const [saving, setSaving] = useState(false); const [usersToAdd, setUsersToAdd] = useState([]); const [showUnknownError, setShowUnknownError] = useState(false); + const {formatMessage} = useIntl(); const doHide = useCallback(() => { setShow(false); @@ -104,13 +103,10 @@ const AddUsersToGroupModal = (props: Props) => {