diff --git a/src/components/ReactTable4/GlobalFilter.js b/src/components/ReactTable4/GlobalFilter.js index 5932ea8..a05fa1a 100644 --- a/src/components/ReactTable4/GlobalFilter.js +++ b/src/components/ReactTable4/GlobalFilter.js @@ -58,46 +58,46 @@ export const GlobalFilter = ({ filter, setFilter }) => { // ? اگر میخواستم کاری کنم که وقتی رویه سرچ باکس میزدم ایکن ضربدر هاید میشد و ایکن کنسل میومد باید از این کد استفاده میکردم -// import React, { useState } from "react"; -// import { useAsyncDebounce } from "react-table"; +import React, { useState } from "react"; +import { useAsyncDebounce } from "react-table"; -// import search from "./search-normal.svg"; -// import cancleIcon from "./zarbedar-icon.svg"; +import search from "./search-normal.svg"; +import cancleIcon from "./zarbedar-icon.svg"; -// export const GlobalFilter = ({ filter, setFilter }) => { -// const [activeSearchBox, setActiveSearchBox] = useState(false); +export const GlobalFilter = ({ filter, setFilter }) => { + const [activeSearchBox, setActiveSearchBox] = useState(false); -// const [value, setValue] = useState(filter); + const [value, setValue] = useState(filter); -// const onChange = useAsyncDebounce((value) => { -// setFilter(value || undefined); -// }, 400); + const onChange = useAsyncDebounce((value) => { + setFilter(value || undefined); + }, 400); -// return ( -//