add modified to useTeamMembers, fix website delete
This commit is contained in:
@@ -49,6 +49,7 @@ export function ReportDeleteButton({
|
||||
error={error}
|
||||
onConfirm={handleConfirm.bind(null, close)}
|
||||
onClose={close}
|
||||
buttonLabel={formatMessage(labels.delete)}
|
||||
/>
|
||||
)}
|
||||
</Modal>
|
||||
|
||||
@@ -15,7 +15,7 @@ export function WebsiteDeleteForm({
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { del, useMutation } = useApi();
|
||||
const { mutate, isPending, error } = useMutation({
|
||||
mutationFn: (data: any) => del(`/websites/${websiteId}`, data),
|
||||
mutationFn: () => del(`/websites/${websiteId}`),
|
||||
});
|
||||
|
||||
const handleConfirm = async () => {
|
||||
|
||||
Reference in New Issue
Block a user