@bigbinary/neeto-webhooks-frontend 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import React, { useState, useRef, useCallback } from 'react';
2
2
  import { useParams, useRouteMatch, Switch as Switch$1, Route } from 'react-router-dom';
3
3
  import { isPresent, removeBy, isNotEmpty, removeById, findBy } from '@bigbinary/neeto-cist';
4
+ import { DEFAULT_STALE_TIME, SINGULAR, DEFAULT_PAGE_SIZE, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
4
5
  import Container from '@bigbinary/neeto-molecules/Container';
5
6
  import Header$2 from '@bigbinary/neeto-molecules/Header';
6
7
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
@@ -9,7 +10,6 @@ import { Spinner, Typography, Tag, Tab, Pane, Button, Table, NoData, Dropdown, A
9
10
  import { useTranslation, Trans } from 'react-i18next';
10
11
  import { QueryClient, QueryCache, QueryClientProvider, useQuery, useQueryClient, useMutation } from 'react-query';
11
12
  import { ReactQueryDevtools } from 'react-query/devtools';
12
- import { DEFAULT_STALE_TIME, SINGULAR, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
13
13
  import axios from 'axios';
14
14
  import DateFormat from '@bigbinary/neeto-molecules/DateFormat';
15
15
  import { t as t$1 } from 'i18next';
@@ -170,8 +170,6 @@ var useRedeliverWebhook = function useRedeliverWebhook() {
170
170
  });
171
171
  };
172
172
 
173
- var DEFAULT_PAGE_SIZE = 10;
174
-
175
173
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
176
174
  try {
177
175
  var info = gen[key](arg);
@@ -792,7 +790,7 @@ var Deliveries = function Deliveries(_ref) {
792
790
  var _useFetchDeliveries = useFetchDeliveries({
793
791
  webhookId: webhookId,
794
792
  page: pageNumber,
795
- limit: DEFAULT_PAGE_SIZE
793
+ pageSize: DEFAULT_PAGE_SIZE
796
794
  }),
797
795
  isLoading = _useFetchDeliveries.isLoading,
798
796
  isFetching = _useFetchDeliveries.isFetching,
@@ -1285,7 +1283,7 @@ var Webhooks = function Webhooks(_ref) {
1285
1283
  var _useFetchWebhooks = useFetchWebhooks({
1286
1284
  entityId: entityId,
1287
1285
  page: pageNumber,
1288
- limit: DEFAULT_PAGE_SIZE
1286
+ pageSize: DEFAULT_PAGE_SIZE
1289
1287
  }),
1290
1288
  isLoading = _useFetchWebhooks.isLoading,
1291
1289
  isFetching = _useFetchWebhooks.isFetching,