mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Modify config defaults to better accommodate country-specific requirements
This commit is contained in:
parent
80a99c75d3
commit
22cd59d0f5
7 changed files with 101 additions and 61 deletions
|
@ -1,20 +1,11 @@
|
|||
import { Icon } from '@wordpress/components';
|
||||
|
||||
import data from '../../utils/data';
|
||||
|
||||
const PaymentMethodIcon = ( { icons, type } ) => {
|
||||
const validIcon = Array.isArray( icons ) && icons.includes( type );
|
||||
|
||||
if ( validIcon || icons === 'all' ) {
|
||||
return (
|
||||
<Icon
|
||||
icon={ data().getImage( 'icon-button-' + type + '.svg' ) }
|
||||
className="ppcp--method-icon"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
return null;
|
||||
};
|
||||
const PaymentMethodIcon = ( { type } ) => (
|
||||
<Icon
|
||||
icon={ data().getImage( `icon-button-${ type }.svg` ) }
|
||||
className="ppcp--method-icon"
|
||||
/>
|
||||
);
|
||||
|
||||
export default PaymentMethodIcon;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue