🐛 Fix inconsistent property names

This commit is contained in:
Philipp Stracker 2025-01-16 20:04:47 +01:00
parent e5f882cc57
commit 510a711caa
No known key found for this signature in database
2 changed files with 8 additions and 9 deletions

View file

@ -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 = {

View file

@ -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 ),