🔧 chore: remove dot when description dont exist

This commit is contained in:
Andre H 2024-02-28 23:07:31 +07:00
parent ee35e64f69
commit 2f466d4fbb

View File

@ -62,11 +62,13 @@ const SelectItem = forwardRef<HTMLLIElement, SelectItemProps>(
<p className={theme.label()} data-disabled={disabled}>
{label}
</p>
{orientation === 'horizontal' && <span className={theme.dot()} />}
{description && (
<p className={theme.description()} data-disabled={disabled}>
{description}
</p>
<>
{orientation === 'horizontal' && <span className={theme.dot()} />}
<p className={theme.description()} data-disabled={disabled}>
{description}
</p>
</>
)}
</div>
{renderRightIcon}