diff --git a/components/InputDropdown/InputDropdown.tsx b/components/InputDropdown/InputDropdown.tsx index 28cf4b9..97dcd5d 100644 --- a/components/InputDropdown/InputDropdown.tsx +++ b/components/InputDropdown/InputDropdown.tsx @@ -52,73 +52,6 @@ function AnimatedMenu(props: MenuProps) { ); } - -// main dropdown component -// export default function InputDropdown({ -// label, -// options, -// placeholder = '', -// error = '', -// disabled, -// required, -// onChange, -// multi, -// }: InputDropdownProps) { -// const optionsArray = useMemo( -// () => -// options instanceof Set -// ? Array.from(options).map(v => ({ label: v, value: v })) -// : Array.from(options.entries()).map(([k, v]) => ({ -// value: k, -// label: v, -// })), -// [options], -// ); - -// const handleChange = useCallback( -// (newValue: MultiValue | SingleValue) => { -// if (multi && newValue instanceof Array) { -// onChange?.(new Set(newValue.map(v => v.value))); -// } else if (!multi && !(newValue instanceof Array)) { -// onChange?.(newValue ? newValue.value : null); -// } else { -// throw new Error('An unexpected error occurred!'); -// } -// }, -// [multi, onChange], -// ); - -// return ( -// -// -//

-// {label} -//

-// {required && {'*'}} -//
-//