fix: build errors
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user