search column added

master
mahdi andalib 3 years ago
parent 82e513c890
commit ee77e94f68
  1. 14
      src/components/ReactTable4/GlobalFilter.js

@ -28,7 +28,6 @@ export const GlobalFilter = ({ filter, setFilter }) => {
alt="" alt=""
className="w-4 h-4 absolute left-2 cursor-pointer" className="w-4 h-4 absolute left-2 cursor-pointer"
/> />
<input <input
value={filter || ""} value={filter || ""}
onChange={(e) => setFilter(e.target.value)} onChange={(e) => 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`} className={`text-xs text-blue-400 rounded focus:outline-none placeholder-blue-400 border`}
style={{ backgroundColor: "#F9FBFF", borderColor: "#B5D6FF" }} style={{ backgroundColor: "#F9FBFF", borderColor: "#B5D6FF" }}
/> />
{/* <input </div>
);
};
{
/* <input
value={value || ""} value={value || ""}
onChange={(e) => { onChange={(e) => {
setValue(e.target.value); setValue(e.target.value);
@ -49,7 +53,5 @@ export const GlobalFilter = ({ filter, setFilter }) => {
type="text" type="text"
className={`text-xs text-blue-400 rounded focus:outline-none placeholder-blue-400 border`} className={`text-xs text-blue-400 rounded focus:outline-none placeholder-blue-400 border`}
style={{ backgroundColor: "#F9FBFF", borderColor: "#B5D6FF" }} style={{ backgroundColor: "#F9FBFF", borderColor: "#B5D6FF" }}
/> */} /> */
</div> }
);
};

Loading…
Cancel
Save