mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
✨ Hide empty option-selector title element
This commit is contained in:
parent
618b687428
commit
6b239b261a
1 changed files with 4 additions and 1 deletions
|
@ -50,6 +50,7 @@ const OptionItem = ( {
|
|||
const boxClassName = classNames( 'ppcp-r-select-box', {
|
||||
'ppcp--selected': isSelected,
|
||||
'ppcp--multiselect': isMulti,
|
||||
'ppcp--no-title': ! itemTitle,
|
||||
} );
|
||||
|
||||
return (
|
||||
|
@ -64,7 +65,9 @@ const OptionItem = ( {
|
|||
|
||||
<div className="ppcp--box-content">
|
||||
<div className="ppcp--box-content-inner">
|
||||
<span className="ppcp--box-title">{ itemTitle }</span>
|
||||
{ itemTitle && (
|
||||
<span className="ppcp--box-title">{ itemTitle }</span>
|
||||
) }
|
||||
<div className="ppcp--box-description">
|
||||
{ itemDescription }
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue