diff --git a/package-lock.json b/package-lock.json index 34c1dd093..0700eb04f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2399,6 +2399,7 @@ }, "node_modules/@clack/prompts/node_modules/is-unicode-supported": { "version": "1.3.0", + "extraneous": true, "inBundle": true, "license": "MIT", "engines": { diff --git a/packages/components/dropdown/src/DropdownItemIndicator.tsx b/packages/components/dropdown/src/DropdownItemIndicator.tsx index 2668403f8..29bbe9f51 100644 --- a/packages/components/dropdown/src/DropdownItemIndicator.tsx +++ b/packages/components/dropdown/src/DropdownItemIndicator.tsx @@ -1,8 +1,8 @@ +import { Icon } from '@spark-ui/icon' import { Check } from '@spark-ui/icons/dist/icons/Check' import { cx } from 'class-variance-authority' import { forwardRef, ReactNode, type Ref } from 'react' -import { useDropdownContext } from './DropdownContext' import { useDropdownItemContext } from './DropdownItemContext' export interface ItemIndicatorProps { @@ -14,9 +14,12 @@ export interface ItemIndicatorProps { export const ItemIndicator = forwardRef( ({ className, children, label }: ItemIndicatorProps, forwardedRef: Ref) => { const { disabled, isSelected } = useDropdownItemContext() - const { multiple } = useDropdownContext() - const childElement = - children || (multiple ? : ) + + const childElement = children || ( + + + + ) return (