src/hooks/courses/useFilter.ts
Function useFilter
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const useFilter = (entityType: EntityType = "courses") => {
const coursesContext = useContext(CoursesContext);
const consultationsContext = useContext(ConsultationsContext);
const { fetchCategories, categoryTree } = useContext(EscolaLMSContext);