Update forms

This commit is contained in:
jeffvli
2022-11-08 19:00:48 -08:00
parent 30a7bac59a
commit ddc0355b1e
4 changed files with 63 additions and 35 deletions
@@ -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();
},
}