|
|
|
@ -5,9 +5,11 @@ import { STATUSES } from "../../../config";
|
|
|
|
import { usePendingPointsFilters } from "../../../stores/usePendingPointsFilters";
|
|
|
|
import { usePendingPointsFilters } from "../../../stores/usePendingPointsFilters";
|
|
|
|
import { appendFiltersInUse } from "../../../utils.js";
|
|
|
|
import { appendFiltersInUse } from "../../../utils.js";
|
|
|
|
import { useMode } from "../../../stores/useMode.js";
|
|
|
|
import { useMode } from "../../../stores/useMode.js";
|
|
|
|
|
|
|
|
import { useUpdateLayerCounter } from "../../../stores/useUpdateLayerCounter.js";
|
|
|
|
|
|
|
|
|
|
|
|
export const usePendingTableData = (page, resetPage, pageSize, setPageSize, sort) => {
|
|
|
|
export const usePendingTableData = (page, resetPage, pageSize, setPageSize, sort) => {
|
|
|
|
const { filters, ranges } = usePendingPointsFilters();
|
|
|
|
const { filters, ranges } = usePendingPointsFilters();
|
|
|
|
|
|
|
|
const { updateCounter } = useUpdateLayerCounter();
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
categories,
|
|
|
|
categories,
|
|
|
|
region,
|
|
|
|
region,
|
|
|
|
@ -31,7 +33,7 @@ export const usePendingTableData = (page, resetPage, pageSize, setPageSize, sort
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const {data, isInitialLoading, isFetching} = useQuery(
|
|
|
|
const {data, isInitialLoading, isFetching} = useQuery(
|
|
|
|
["table", page, filters, sort, dbTable],
|
|
|
|
["table", page, filters, sort, dbTable, updateCounter],
|
|
|
|
async () => {
|
|
|
|
async () => {
|
|
|
|
const params = getParams();
|
|
|
|
const params = getParams();
|
|
|
|
|
|
|
|
|
|
|
|
|