src/hooks/useDeleteAccount.ts
Function useDeleteAccountModal
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useDeleteAccountModal = () => {
const [loading, setLoading] = useState(false);
const [showModal, setShowModal] = useState(false);
const { deleteAccount, logout } = useContext(EscolaLMSContext);
const history = useHistory();