mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
🐛 Fix inconsistent property names
This commit is contained in:
parent
e5f882cc57
commit
510a711caa
2 changed files with 8 additions and 9 deletions
|
@ -47,8 +47,8 @@ export const STYLING_LOCATIONS = {
|
|||
),
|
||||
link: '#',
|
||||
},
|
||||
'product-page': {
|
||||
value: 'product-page',
|
||||
product: {
|
||||
value: 'product',
|
||||
label: __( 'Product Page', 'woocommerce-paypal-payments' ),
|
||||
// translators: %s is the URL to a documentation page.
|
||||
description: __(
|
||||
|
@ -113,14 +113,14 @@ export const STYLING_LAYOUTS = {
|
|||
};
|
||||
|
||||
export const STYLING_SHAPES = {
|
||||
pill: {
|
||||
value: 'pill',
|
||||
label: __( 'Pill', 'woocommerce-paypal-payments' ),
|
||||
},
|
||||
rect: {
|
||||
value: 'rect',
|
||||
label: __( 'Rectangle', 'woocommerce-paypal-payments' ),
|
||||
},
|
||||
pill: {
|
||||
value: 'pill',
|
||||
label: __( 'Pill', 'woocommerce-paypal-payments' ),
|
||||
},
|
||||
};
|
||||
|
||||
export const STYLING_PAYMENT_METHODS = {
|
||||
|
|
|
@ -92,9 +92,8 @@ export const useStylingProps = ( location ) => {
|
|||
|
||||
// Payment methods (checkboxes).
|
||||
paymentMethodChoices: Object.values( STYLING_PAYMENT_METHODS ),
|
||||
paymentMethods: getLocationProp( 'paymentMethods' ),
|
||||
setPaymentMethods: ( methods ) =>
|
||||
setLocationProp( 'paymentMethods', methods ),
|
||||
paymentMethods: getLocationProp( 'methods' ),
|
||||
setPaymentMethods: ( methods ) => setLocationProp( 'methods', methods ),
|
||||
|
||||
// Color (dropdown).
|
||||
colorChoices: Object.values( STYLING_COLORS ),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue