|
|
|
@ -8,26 +8,26 @@ export const ColumnSearch = ({ column }) => { |
|
|
|
|
const [activeSearchBox, setActiveSearchBox] = useState(false); |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div className="rounded-md flex flex-row items-center"> |
|
|
|
|
<div className="flex flex-row items-center"> |
|
|
|
|
<div className="flex flex-row items-center relative"> |
|
|
|
|
{activeSearchBox && ( |
|
|
|
|
<img |
|
|
|
|
src={settings} |
|
|
|
|
alt="" |
|
|
|
|
className="w-4 h-4 absolute left-7 cursor-pointer" |
|
|
|
|
className="w-4 h-4 absolute left-16 cursor-pointer" |
|
|
|
|
onClick={() => setActiveSearchBox(false)} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
<img |
|
|
|
|
src={search} |
|
|
|
|
alt="" |
|
|
|
|
className="w-4 h-4 absolute left-2 cursor-pointer" |
|
|
|
|
className="w-4 h-4 absolute left-11 cursor-pointer" |
|
|
|
|
/> |
|
|
|
|
<input |
|
|
|
|
value={filterValue || ""} |
|
|
|
|
onChange={(e) => setFilter(e.target.value)} |
|
|
|
|
onFocus={() => setActiveSearchBox(true)} |
|
|
|
|
className={`text-xs text-blue-400 rounded focus:outline-none placeholder-blue-400 border p-1`} |
|
|
|
|
className={`w-9/12 text-xs text-blue-400 rounded focus:outline-none border p-1 focus:border-blue-200 focus:ring focus:ring-blue-200 focus:ring-opacity-20`} |
|
|
|
|
style={{ backgroundColor: "#F9FBFF", borderColor: "#B5D6FF" }} |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|