From ee77e94f686f4a2094af79492ef2b0b7a34f19f7 Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Fri, 18 Feb 2022 16:35:33 +0330 Subject: [PATCH] search column added --- src/components/ReactTable4/GlobalFilter.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/components/ReactTable4/GlobalFilter.js b/src/components/ReactTable4/GlobalFilter.js index 9424c8e..6bfbe90 100644 --- a/src/components/ReactTable4/GlobalFilter.js +++ b/src/components/ReactTable4/GlobalFilter.js @@ -28,7 +28,6 @@ export const GlobalFilter = ({ filter, setFilter }) => { alt="" className="w-4 h-4 absolute left-2 cursor-pointer" /> - setFilter(e.target.value)} @@ -38,7 +37,12 @@ export const GlobalFilter = ({ filter, setFilter }) => { className={`text-xs text-blue-400 rounded focus:outline-none placeholder-blue-400 border`} style={{ backgroundColor: "#F9FBFF", borderColor: "#B5D6FF" }} /> - {/* + ); +}; + +{ + /* { setValue(e.target.value); @@ -49,7 +53,5 @@ export const GlobalFilter = ({ filter, setFilter }) => { type="text" className={`text-xs text-blue-400 rounded focus:outline-none placeholder-blue-400 border`} style={{ backgroundColor: "#F9FBFF", borderColor: "#B5D6FF" }} - /> */} - - ); -}; + /> */ +}