mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Removed FormattedMessage usage.
This commit is contained in:
parent
84193a4ec5
commit
f242835fc2
13 changed files with 132 additions and 70 deletions
|
|
@ -2,7 +2,6 @@ import ConfirmationForm from '@/components/common/ConfirmationForm';
|
|||
import { useApi, useMessages, useModified } from '@/components/hooks';
|
||||
import { messages } from '@/components/messages';
|
||||
import { Button, Icon, Icons, Modal, ModalTrigger, Text } from 'react-basics';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
export function TeamMemberRemoveButton({
|
||||
teamId,
|
||||
|
|
@ -44,12 +43,7 @@ export function TeamMemberRemoveButton({
|
|||
<Modal title={formatMessage(labels.removeMember)}>
|
||||
{(close: () => void) => (
|
||||
<ConfirmationForm
|
||||
message={
|
||||
<FormattedMessage
|
||||
{...messages.confirmRemove}
|
||||
values={{ target: <b>{userName}</b> }}
|
||||
/>
|
||||
}
|
||||
message={formatMessage(messages.confirmRemove, { target: <b>{userName}</b> })}
|
||||
isLoading={isPending}
|
||||
error={error}
|
||||
onConfirm={handleConfirm.bind(null, close)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue