Admin Report: use better icons for 'deactivate' and 'delete'

This commit is contained in:
Alex Gleason 2022-11-27 13:23:43 -06:00
parent 5ef9a93371
commit 92053cefb0
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -44,13 +44,14 @@ const Report: React.FC<IReport> = ({ id }) => {
const makeMenu = () => {
return [{
text: intl.formatMessage(messages.deactivateUser, { name: targetAccount.username as string }),
text: intl.formatMessage(messages.deactivateUser, { name: targetAccount.username }),
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,
icon: require('@tabler/icons/user-minus.svg'),
icon: require('@tabler/icons/trash.svg'),
destructive: true,
}];
};