fix: build errors

This commit is contained in:
Mahyar Khanbolooki
2025-07-26 15:44:42 +03:30
parent b970a277fd
commit 852f34d363
5 changed files with 24 additions and 15 deletions
+4 -4
View File
@@ -3,7 +3,7 @@ import ArrowDownIcon from '../icons/ArrowDownIcon';
import { motion, Variants } from 'framer-motion';
import { SearchNormal } from 'iconsax-react';
export interface DropdownOption {
export interface ComboboxOption {
id: string;
title: string;
label?: string;
@@ -11,14 +11,14 @@ export interface DropdownOption {
type Props = {
title: string;
options: Array<DropdownOption>;
options: Array<ComboboxOption>;
expanded?: boolean;
selectedId: string;
searchable?: boolean;
onSelectionChange: (e: React.MouseEvent<HTMLDivElement, MouseEvent>, index: number) => void,
} & React.HTMLAttributes<HTMLDivElement>
function ComboBox({ title, options, expanded, selectedId, searchable = true, onSelectionChange, ...props }: Props) {
function Combobox({ title, options, expanded, selectedId, searchable = true, onSelectionChange, ...props }: Props) {
const [expand, setExpand] = useState(expanded);
const [searchValue, setSearchValue] = useState('');
const boxRef = useRef<HTMLDivElement>(null);
@@ -150,4 +150,4 @@ function ComboBox({ title, options, expanded, selectedId, searchable = true, onS
}
export default ComboBox
export default Combobox