refactor: remove CustomSelect component and update SearchInput and SessionComments for improved functionality
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user