fix: dropmenu icon prop passive, profile avatar button cls
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -76,7 +76,7 @@ const DropdownMenuItem = React.forwardRef<
|
||||
inset?: boolean
|
||||
icon?: React.ReactNode
|
||||
}
|
||||
>(({ className, inset, ...props }, ref) => (
|
||||
>(({ className, inset, icon, ...props }, ref) => (
|
||||
<DropdownMenuPrimitive.Item
|
||||
ref={ref}
|
||||
className={cn(
|
||||
@@ -87,12 +87,12 @@ const DropdownMenuItem = React.forwardRef<
|
||||
)}
|
||||
{...props}
|
||||
>
|
||||
{!!props.icon && (
|
||||
<span className="mr-1.5 inline-flex size-4 items-center justify-center">{props.icon}</span>
|
||||
{!!icon && (
|
||||
<span className="mr-1.5 inline-flex size-4 items-center justify-center">{icon}</span>
|
||||
)}
|
||||
{props.children}
|
||||
{/* Justify Fill */}
|
||||
{!!props.icon && <span className="ml-1.5 size-4" />}
|
||||
{!!icon && <span className="ml-1.5 size-4" />}
|
||||
</DropdownMenuPrimitive.Item>
|
||||
))
|
||||
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName
|
||||
|
||||
Reference in New Issue
Block a user