remove delete
This commit is contained in:
1 parent
4945b29334
commit
4f4203dbb3
1 file changed
-10
@@ -77,16 +77,6 @@ export const TabProfile = () => {
|
|||||||
// }
|
// }
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleDeleteAccount = async () => {
|
|
||||||
const result = await deleteFn("/auth/user");
|
|
||||||
if (result?.success) {
|
|
||||||
dispatch(clearAuthState());
|
|
||||||
navigate("/login");
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const showDeleteSection = !user?.role?.includes("demo");
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Box
|
<Box
|
||||||
|
|||||||
Reference in new issue
Block a user