|
|
|
|
@@ -23,7 +23,7 @@ import ToastBox from "../../Components/ToastBox";
|
|
|
|
|
import NormalTable from "../../Components/DataTable/NormalTable";
|
|
|
|
|
import GlobalStateContext from "../../Contexts/GlobalStateContext";
|
|
|
|
|
import { useGetInvestorsQuery } from "../../Services/investor.details.service";
|
|
|
|
|
import { TABLE_PAGINATION } from "../../Constants/Paginations";
|
|
|
|
|
import { INVESTOR_TABLE_PAGINATION, TABLE_PAGINATION } from "../../Constants/Paginations";
|
|
|
|
|
import { formatDate, generateSerialNumber } from "../../Constants/Constants";
|
|
|
|
|
import { ViewIcon } from "@chakra-ui/icons";
|
|
|
|
|
import { useGetUnbanInvestorQuery } from "../../Services/ban.investor.service";
|
|
|
|
|
@@ -66,8 +66,8 @@ const Notification = () => {
|
|
|
|
|
const [form, setForm] = useState({});
|
|
|
|
|
const [isLoading, setIsLoading] = useState(false);
|
|
|
|
|
const [ selectedRadio, setSelectedRadio] = useState([])
|
|
|
|
|
const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
|
|
|
|
|
const [currentPage, setCurrentPage] = useState(TABLE_PAGINATION?.page);
|
|
|
|
|
const [pageSize, setPageSize] = useState(INVESTOR_TABLE_PAGINATION?.size);
|
|
|
|
|
const [currentPage, setCurrentPage] = useState(INVESTOR_TABLE_PAGINATION?.page);
|
|
|
|
|
const [searchTerm, setSearchTerm] = useState("");
|
|
|
|
|
const [debouncedSearchTerm, setDebouncedSearchTerm] = useState("");
|
|
|
|
|
|
|
|
|
|
@@ -116,7 +116,7 @@ const Notification = () => {
|
|
|
|
|
refetch,
|
|
|
|
|
} = useGetUnbanInvestorQuery({
|
|
|
|
|
page: debouncedSearchTerm ? undefined : currentPage, // Omit pagination for search
|
|
|
|
|
size: debouncedSearchTerm ? undefined : pageSize, // Omit pagination for search
|
|
|
|
|
size: debouncedSearchTerm ? undefined : 10000 || pageSize || 500, // Omit pagination for search
|
|
|
|
|
search: debouncedSearchTerm,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
|