Skip to content

Commit

Permalink
fix generic type
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Oct 30, 2023
1 parent f1189d2 commit b22af98
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type MultiSelectDropdownProps<T> = {
onChange: (value: T[]) => void;
};

const MultiSelectDropdown = <T extends unknown>({ label, options, values, onChange }: MultiSelectDropdownProps<T>) => {
const MultiSelectDropdown = <T = unknown,>({ label, options, values, onChange }: MultiSelectDropdownProps<T>) => {
const [isOpen, setIsOpen] = useState(false);

const toggleDropdown = () => {
Expand Down

0 comments on commit b22af98

Please sign in to comment.