go back to team settings on team delete

This commit is contained in:
Francis Cao 2024-02-07 11:43:00 -08:00
parent 0016a9f4e1
commit 8969a010e8
2 changed files with 13 additions and 5 deletions

View file

@ -1,6 +1,5 @@
import { useApi, useMessages } from 'components/hooks';
import { touch } from 'store/modified';
import TypeConfirmationForm from 'components/common/TypeConfirmationForm';
import { useApi, useMessages } from 'components/hooks';
const CONFIRM_VALUE = 'DELETE';
@ -22,7 +21,6 @@ export function TeamDeleteForm({
const handleConfirm = async () => {
mutate(null, {
onSuccess: async () => {
touch('teams');
onSave?.();
onClose?.();
},