🔧 chore: remove dot when description dont exist
This commit is contained in:
parent
ee35e64f69
commit
2f466d4fbb
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user