mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Axo Block: Improve the comment regarding class names
This commit is contained in:
parent
2436ceb487
commit
05ea2f1e10
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,8 @@ import { STORE_NAME } from '../stores/axoStore';
|
|||
|
||||
/**
|
||||
* Sets up a class toggle based on the isGuest state for the express payment block.
|
||||
* This hides the express payment methods if the user is authenticated (Ryan flow).
|
||||
*
|
||||
* @return {Function} Unsubscribe function for cleanup.
|
||||
*/
|
||||
export const setupAuthenticationClassToggle = () => {
|
||||
|
@ -43,6 +45,9 @@ export const setupAuthenticationClassToggle = () => {
|
|||
|
||||
/**
|
||||
* Sets up a class toggle based on the isEmailLookupCompleted state for the checkout fields block.
|
||||
* This hides the Shipping Address fields, Billing Address fields, Shipping Options section,
|
||||
* Order Notes section, Checkout Terms section, and Place Order button until email lookup is completed.
|
||||
*
|
||||
* @return {Function} Unsubscribe function for cleanup.
|
||||
*/
|
||||
export const setupEmailLookupCompletedClassToggle = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue