src/pages/sharedPosts.tsx
Function SharedJobPosts
has 339 lines of code (exceeds 200 allowed). Consider refactoring. Open
Open
function SharedJobPosts(props: any) {
const [fetchProgram, setfetchProgram] = useState([]);
const [fetchCycle, setfetchCycle] = useState([]);
const [fetchCohort, setfetchCohort] = useState([]);
const [actionsList, setActionsList] = useState(null);
File sharedPosts.tsx
has 369 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { useEffect, useState } from "react";
import NavBar from "../components/sidebar/navHeader";
import { BrowserRouter as Router, Link, useNavigate } from "react-router-dom";
import { useAppDispatch, useAppSelector } from "../hooks/hooks";
import { fetchJobPost } from "../redux/actions/fetchJobPost";