EscolaLMS/Front

View on GitHub
src/hooks/useDeleteAccount.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useDeleteAccountModal has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useDeleteAccountModal = () => {
  const [loading, setLoading] = useState(false);
  const [showModal, setShowModal] = useState(false);
  const { deleteAccount, logout } = useContext(EscolaLMSContext);
  const history = useHistory();
Severity: Minor
Found in src/hooks/useDeleteAccount.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status