mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
New Settings UI: Conditionally show subscriptions product option
This commit is contained in:
parent
ebc53b7bfa
commit
137d40489c
6 changed files with 41 additions and 25 deletions
|
@ -123,3 +123,8 @@ export const useNavigationState = () => {
|
|||
business,
|
||||
};
|
||||
};
|
||||
|
||||
export const useFlags = () => {
|
||||
const { flags } = useHooks();
|
||||
return flags;
|
||||
};
|
||||
|
|
|
@ -20,6 +20,7 @@ const defaultTransient = {
|
|||
canUseCasualSelling: false,
|
||||
canUseVaulting: false,
|
||||
canUseCardPayments: false,
|
||||
canUseSubscriptions: false,
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue