mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 12:30:06 +02:00
Update forms
This commit is contained in:
@@ -59,7 +59,10 @@ export const EditUserForm = ({ user, onCancel }: AddUserFormProps) => {
|
||||
onError: (err) =>
|
||||
toast.error({ message: err.response?.data?.error?.message }),
|
||||
onSuccess: () => {
|
||||
toast.success({ message: 'User updated' });
|
||||
toast.success({
|
||||
message: `${values.username} was successfully updated.`,
|
||||
title: 'User updated',
|
||||
});
|
||||
onCancel();
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user