mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Implement the rest of the welcome step
This commit is contained in:
parent
02ba0b1d48
commit
32bf8a76ec
46 changed files with 933 additions and 2 deletions
18
modules/ppcp-settings/resources/js/utils/data.js
Normal file
18
modules/ppcp-settings/resources/js/utils/data.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
const data = () => {
|
||||
return {
|
||||
...global.ppcpSettings,
|
||||
getImage( imageName, className = '' ) {
|
||||
const pathToImages = global.ppcpSettings.assets.imagesUrl;
|
||||
|
||||
return (
|
||||
<img
|
||||
className={ className }
|
||||
alt=""
|
||||
src={ pathToImages + imageName }
|
||||
/>
|
||||
);
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
export default data;
|
Loading…
Add table
Add a link
Reference in a new issue