refactor: remove CustomSelect component and update SearchInput and SessionComments for improved functionality

This commit is contained in:
2025-06-17 14:48:23 +05:00
parent facb76e904
commit 39dd596e01
5 changed files with 19 additions and 30 deletions
+11 -1
View File
@@ -7,6 +7,7 @@ import clsx from "clsx";
function SearchInput(
props: React.InputHTMLAttributes<HTMLInputElement> & {
onEnter?: () => void;
setSearch: React.Dispatch<React.SetStateAction<string | null>>;
}
) {
const ref = useRef<HTMLInputElement>(null);
@@ -47,7 +48,16 @@ function SearchInput(
// }
// }}
>
<div className="text-[#7D7D7D] size-[1.111vw]">
<div
className="text-[#7D7D7D] size-[1.111vw]"
onClick={() => {
if (ref.current) {
ref.current.value = "";
ref.current.focus();
props.setSearch(ref.current.value);
}
}}
>
<CloseIcon />
</div>
</button>