🔧 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}>
|
<p className={theme.label()} data-disabled={disabled}>
|
||||||
{label}
|
{label}
|
||||||
</p>
|
</p>
|
||||||
{orientation === 'horizontal' && <span className={theme.dot()} />}
|
|
||||||
{description && (
|
{description && (
|
||||||
<p className={theme.description()} data-disabled={disabled}>
|
<>
|
||||||
{description}
|
{orientation === 'horizontal' && <span className={theme.dot()} />}
|
||||||
</p>
|
<p className={theme.description()} data-disabled={disabled}>
|
||||||
|
{description}
|
||||||
|
</p>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
{renderRightIcon}
|
{renderRightIcon}
|
||||||
|
Loading…
Reference in New Issue
Block a user