Hide logo position when not available

This commit is contained in:
Alex P 2023-12-06 17:33:13 +02:00
parent baa3afeb9b
commit 2f1c8f6c57
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -53,7 +53,7 @@ export default function Edit( { attributes, clientId, setAttributes } ) {
value={logo}
onChange={(value) => setAttributes({logo: value})}
/>)}
{ !isFlex && (<SelectControl
{ !isFlex && logo === 'primary' && (<SelectControl
label={__('Logo Position', 'woocommerce-paypal-payments')}
options={[
{ label: __( 'Left', 'woocommerce-paypal-payments' ), value: 'left' },