🔧 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}> <p className={theme.label()} data-disabled={disabled}>
{label} {label}
</p> </p>
{orientation === 'horizontal' && <span className={theme.dot()} />}
{description && ( {description && (
<>
{orientation === 'horizontal' && <span className={theme.dot()} />}
<p className={theme.description()} data-disabled={disabled}> <p className={theme.description()} data-disabled={disabled}>
{description} {description}
</p> </p>
</>
)} )}
</div> </div>
{renderRightIcon} {renderRightIcon}