@bigbinary/neeto-fields-frontend 1.3.13 → 1.3.14

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.cjs.js CHANGED
@@ -2664,18 +2664,15 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
2664
2664
  _useState8 = _slicedToArray(_useState7, 2),
2665
2665
  selectedField = _useState8[0],
2666
2666
  setSelectedField = _useState8[1];
2667
- var _useState9 = React.useState(""),
2668
- _useState10 = _slicedToArray(_useState9, 2),
2669
- searchTerm = _useState10[0],
2670
- setSearchTerm = _useState10[1];
2671
- var _useState11 = React.useState({
2667
+ var _useState9 = React.useState({
2672
2668
  page: constants.DEFAULT_PAGE_INDEX,
2673
2669
  pageSize: constants.DEFAULT_PAGE_SIZE
2674
2670
  }),
2675
- _useState12 = _slicedToArray(_useState11, 2),
2676
- pageProps = _useState12[0],
2677
- setPageProps = _useState12[1];
2678
- var debouncedSearchTerm = reactUtils.useDebounce(searchTerm.trim());
2671
+ _useState10 = _slicedToArray(_useState9, 2),
2672
+ pageProps = _useState10[0],
2673
+ setPageProps = _useState10[1];
2674
+ var _useQueryParams = reactUtils.useQueryParams(),
2675
+ searchTerm = _useQueryParams.search_term;
2679
2676
  var history = reactRouterDom.useHistory();
2680
2677
  var _useTranslation = reactI18next.useTranslation(),
2681
2678
  t = _useTranslation.t;
@@ -2697,7 +2694,7 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
2697
2694
  resourceType: !isOwnerBased ? resource : undefined,
2698
2695
  ownerId: ownerId,
2699
2696
  state: state || FIELD_STATES.active,
2700
- searchTerm: debouncedSearchTerm,
2697
+ searchTerm: searchTerm,
2701
2698
  pageProps: pageProps
2702
2699
  };
2703
2700
  var _useFetchFields = useFetchFields(fieldParams, {
@@ -2783,10 +2780,6 @@ var useFieldsDashboard = function useFieldsDashboard(_ref) {
2783
2780
  var isScreenLoading = isFieldsLoading || isConfigsLoading;
2784
2781
  var showCountSubheader = count > 0 && !showStateFilter;
2785
2782
  var searchProps = {
2786
- onChange: function onChange(e) {
2787
- return setSearchTerm(e.target.value);
2788
- },
2789
- value: searchTerm,
2790
2783
  placeholder: t("neetoFields.placeholders.searchFields"),
2791
2784
  className: "w-44"
2792
2785
  };