mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
add delete user label for modal
This commit is contained in:
parent
887b3abb29
commit
aa418e0bed
3 changed files with 6 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ export default function UsersTable({ data = [], onDelete }) {
|
|||
</Icon>
|
||||
<Text>{formatMessage(labels.delete)}</Text>
|
||||
</Button>
|
||||
<Modal>
|
||||
<Modal title={formatMessage(labels.deleteUser)}>
|
||||
{close => (
|
||||
<UserDeleteForm
|
||||
userId={row.id}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,10 @@ export default function WebsiteDeleteForm({ websiteId, onSave, onClose }) {
|
|||
return (
|
||||
<Form onSubmit={handleSubmit} error={error}>
|
||||
<p>
|
||||
<FormattedMessage {...messages.deleteWebsite} values={{ confirmation: CONFIRM_VALUE }} />
|
||||
<FormattedMessage
|
||||
{...messages.deleteWebsite}
|
||||
values={{ confirmation: <b>{CONFIRM_VALUE}</b> }}
|
||||
/>
|
||||
</p>
|
||||
<FormRow label={formatMessage(labels.confirm)}>
|
||||
<FormInput name="confirmation" rules={{ validate: value => value === CONFIRM_VALUE }}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue