{isAdvancedSettings && (
-
+
)}
{!isAdvancedSettings && (
)}
diff --git a/packages/console/src/pages/UserDetails/components/DeleteForm.tsx b/packages/console/src/pages/UserDetails/components/DeleteForm.tsx
deleted file mode 100644
index 723314eeb..000000000
--- a/packages/console/src/pages/UserDetails/components/DeleteForm.tsx
+++ /dev/null
@@ -1,52 +0,0 @@
-import React, { useState } from 'react';
-import { toast } from 'react-hot-toast';
-import { useTranslation } from 'react-i18next';
-import { useNavigate } from 'react-router-dom';
-
-import Button from '@/components/Button';
-import ModalLayout from '@/components/ModalLayout';
-import useApi from '@/hooks/use-api';
-
-type Props = {
- id: string;
- onClose: () => void;
-};
-
-const DeleteForm = ({ id, onClose }: Props) => {
- const api = useApi();
- const { t } = useTranslation(undefined, { keyPrefix: 'admin_console' });
-
- const navigate = useNavigate();
-
- const [loading, setLoading] = useState(false);
-
- const handleDelete = async () => {
- setLoading(true);
-
- try {
- await api.delete(`/api/users/${id}`);
- onClose();
- navigate('/users');
- toast.success(t('user_details.deleted', { name }));
- } finally {
- setLoading(false);
- }
- };
-
- return (
-