From 2590b3e615cc7383e7198417a61860e3ffe95957 Mon Sep 17 00:00:00 2001 From: Omkar Phansopkar Date: Wed, 25 Oct 2023 21:48:34 +0530 Subject: [PATCH 1/6] Sorted filters & handling All value filter Signed-off-by: Omkar Phansopkar --- src/pages/TableView/CustomFilterComponent.tsx | 14 ++++++-------- src/pages/TableView/TableView.tsx | 15 ++++++++++++--- src/pages/TableView/columnGroups.ts | 2 +- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/src/pages/TableView/CustomFilterComponent.tsx b/src/pages/TableView/CustomFilterComponent.tsx index 0c8a9f18..92d6d454 100644 --- a/src/pages/TableView/CustomFilterComponent.tsx +++ b/src/pages/TableView/CustomFilterComponent.tsx @@ -1,10 +1,7 @@ -import React, { - forwardRef, - useImperativeHandle, - useRef, -} from "react"; +import React, { forwardRef, useImperativeHandle, useRef } from "react"; import { IFloatingFilterParams, TextFilterModel } from "ag-grid-community"; -import { DEFAULT_EMPTY_VALUES } from "./columnGroups"; + +import { PLACEHOLDER_EMPTY_VALUES } from "./columnGroups"; import { parseProbableStringifiedArray } from "../../utils/text"; export interface CustomParams extends IFloatingFilterParams { @@ -52,7 +49,6 @@ const CustomFilterComponent = forwardRef((props: CustomParams, ref) => { }); } - return (