mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
✨ New generic icon to replace data().getImage()
This commit is contained in:
parent
c50a1c30ab
commit
235ff308f5
2 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
import React from 'react';
|
||||
|
||||
const GenericIcon = ( { imageName, className = '', alt = '' } ) => {
|
||||
const pathToImages = global.ppcpSettings.assets.imagesUrl;
|
||||
|
||||
return (
|
||||
<img
|
||||
className={ className }
|
||||
alt={ alt }
|
||||
src={ `${ pathToImages }${ imageName }` }
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default GenericIcon;
|
|
@ -1,3 +1,4 @@
|
|||
export { default as PPIcon } from './GenericIcon';
|
||||
export { default as OpenSignup } from './OpenSignup';
|
||||
export { default as LogoPayPal } from './LogoPayPal';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue