mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
♻️ Improve location naming in React
This commit is contained in:
parent
e00b95fd1d
commit
b866ac79f6
2 changed files with 9 additions and 9 deletions
|
@ -13,20 +13,20 @@ export const STYLING_LOCATIONS = {
|
||||||
link: 'https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-cart',
|
link: 'https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-cart',
|
||||||
props: { layout: false, tagline: false },
|
props: { layout: false, tagline: false },
|
||||||
},
|
},
|
||||||
'classic-checkout': {
|
classicCheckout: {
|
||||||
value: 'classic-checkout',
|
value: 'classicCheckout',
|
||||||
label: __( 'Classic Checkout', 'woocommerce-paypal-payments' ),
|
label: __( 'Classic Checkout', 'woocommerce-paypal-payments' ),
|
||||||
link: 'https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-checkout',
|
link: 'https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-checkout',
|
||||||
props: { layout: true, tagline: true },
|
props: { layout: true, tagline: true },
|
||||||
},
|
},
|
||||||
'express-checkout': {
|
expressCheckout: {
|
||||||
value: 'express-checkout',
|
value: 'expressCheckout',
|
||||||
label: __( 'Express Checkout', 'woocommerce-paypal-payments' ),
|
label: __( 'Express Checkout', 'woocommerce-paypal-payments' ),
|
||||||
link: 'https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-block-express-checkout',
|
link: 'https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-block-express-checkout',
|
||||||
props: { layout: false, tagline: false },
|
props: { layout: false, tagline: false },
|
||||||
},
|
},
|
||||||
'mini-cart': {
|
miniCart: {
|
||||||
value: 'mini-cart',
|
value: 'miniCart',
|
||||||
label: __( 'Mini Cart', 'woocommerce-paypel-payements' ),
|
label: __( 'Mini Cart', 'woocommerce-paypel-payements' ),
|
||||||
link: 'https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-mini-cart',
|
link: 'https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-mini-cart',
|
||||||
props: { layout: true, tagline: true },
|
props: { layout: true, tagline: true },
|
||||||
|
|
|
@ -34,7 +34,7 @@ const defaultPersistent = Object.freeze( {
|
||||||
shape: STYLING_SHAPES.rect.value,
|
shape: STYLING_SHAPES.rect.value,
|
||||||
color: STYLING_COLORS.gold.value,
|
color: STYLING_COLORS.gold.value,
|
||||||
} ),
|
} ),
|
||||||
[ STYLING_LOCATIONS[ 'classic-checkout' ].value ]: Object.freeze( {
|
[ STYLING_LOCATIONS.classicCheckout.value ]: Object.freeze( {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
methods: [],
|
methods: [],
|
||||||
label: STYLING_LABELS.checkout.value,
|
label: STYLING_LABELS.checkout.value,
|
||||||
|
@ -43,14 +43,14 @@ const defaultPersistent = Object.freeze( {
|
||||||
layout: STYLING_LAYOUTS.vertical.value,
|
layout: STYLING_LAYOUTS.vertical.value,
|
||||||
tagline: false,
|
tagline: false,
|
||||||
} ),
|
} ),
|
||||||
[ STYLING_LOCATIONS[ 'express-checkout' ].value ]: Object.freeze( {
|
[ STYLING_LOCATIONS.expressCheckout.value ]: Object.freeze( {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
methods: [],
|
methods: [],
|
||||||
label: STYLING_LABELS.checkout.value,
|
label: STYLING_LABELS.checkout.value,
|
||||||
shape: STYLING_SHAPES.rect.value,
|
shape: STYLING_SHAPES.rect.value,
|
||||||
color: STYLING_COLORS.gold.value,
|
color: STYLING_COLORS.gold.value,
|
||||||
} ),
|
} ),
|
||||||
[ STYLING_LOCATIONS[ 'mini-cart' ].value ]: Object.freeze( {
|
[ STYLING_LOCATIONS.miniCart.value ]: Object.freeze( {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
methods: [],
|
methods: [],
|
||||||
label: STYLING_LABELS.pay.value,
|
label: STYLING_LABELS.pay.value,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue