-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/apple express piwoo 319 #949
base: develop
Are you sure you want to change the base?
Conversation
added css for the button added in cart and checkout block
@@ -3,6 +3,8 @@ | |||
} | |||
.apple-pay-button { | |||
display: inline-block; | |||
width: 100%; | |||
height: 41px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason to set the button height?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think now i understood better the requirements of the button styling, but let me know if you see way to improve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me. Please verify if the button sizes are ok.
resources/js/mollieBlockIndex.js
Outdated
@@ -49,21 +49,24 @@ import ApplePayButtonComponent from './blocks/ApplePayButtonComponent' | |||
gatewayData.forEach(item => { | |||
let register = () => registerPaymentMethod(molliePaymentMethod(useEffect, ajaxUrl, filters, gatewayData, availableGateways, item, jQuery, requiredFields, isCompanyFieldVisible, isPhoneFieldVisible)); | |||
if (item.name === 'mollie_wc_gateway_applepay' && !isBlockEditor) { | |||
const isExpressEnabled = item.isExpressEnabled; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a new variable has the same name as the object property, you can do just that:
const {isExpressEnabled} = item;
resources/js/mollieBlockIndex.js
Outdated
content: < ApplePayButtonComponent />, | ||
edit: < ApplePayButtonComponent />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This extra space can cause problems. Do these components still work?
Handles PIWOO-319