Refactor classname usage

This commit is contained in:
Gregory Schier
2023-02-21 18:03:57 -08:00
parent 43c799bd60
commit 784cb53ec6
4 changed files with 19 additions and 17 deletions

View File

@@ -300,9 +300,7 @@ const ItemInner = forwardRef<HTMLDivElement, ItemInnerProps>(function ItemInner(
className={classnames(
className,
'outline-none px-2 py-1.5 flex items-center text-sm text-gray-700',
{
'focus:bg-gray-50 focus:text-gray-900 rounded': !noHover,
},
!noHover && 'focus:bg-gray-50 focus:text-gray-900 rounded',
)}
{...props}
>