Admin Report: use better icons for 'deactivate' and 'delete'
This commit is contained in:
parent
5ef9a93371
commit
92053cefb0
1 changed files with 5 additions and 4 deletions
|
@ -44,13 +44,14 @@ const Report: React.FC<IReport> = ({ id }) => {
|
||||||
|
|
||||||
const makeMenu = () => {
|
const makeMenu = () => {
|
||||||
return [{
|
return [{
|
||||||
text: intl.formatMessage(messages.deactivateUser, { name: targetAccount.username as string }),
|
text: intl.formatMessage(messages.deactivateUser, { name: targetAccount.username }),
|
||||||
action: handleDeactivateUser,
|
action: handleDeactivateUser,
|
||||||
icon: require('@tabler/icons/user-off.svg'),
|
icon: require('@tabler/icons/hourglass-empty.svg'),
|
||||||
}, {
|
}, {
|
||||||
text: intl.formatMessage(messages.deleteUser, { name: targetAccount.username as string }),
|
text: intl.formatMessage(messages.deleteUser, { name: targetAccount.username }),
|
||||||
action: handleDeleteUser,
|
action: handleDeleteUser,
|
||||||
icon: require('@tabler/icons/user-minus.svg'),
|
icon: require('@tabler/icons/trash.svg'),
|
||||||
|
destructive: true,
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue