src/pages/Trash/Trash.tsx
Function Trash
has 320 lines of code (exceeds 200 allowed). Consider refactoring. Open
Open
const Trash = (props: any) => {
const { allTrainees, restore, clearTrashMessage} = props;
const [pageIdx] = useState(1);
const [itemsPerPage] = useState(100);
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
File Trash.tsx
has 351 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React, { useEffect, useState, useMemo } from "react";
import { getAllSoftDeletedTrainees } from "../../redux/actions/softDeletedTraineesActions";
import { restoretraine } from "../../redux/actions/restoreDelTrainee";
import { connect } from "react-redux";
import { useTable, usePagination, useRowSelect } from "react-table";