mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
💄 Remove the link from Subscriptions choice
This commit is contained in:
parent
e7b9b54f24
commit
6e3d6b7816
1 changed files with 23 additions and 8 deletions
|
@ -76,7 +76,17 @@ const StepProducts = () => {
|
|||
'woocommerce-paypal-payments'
|
||||
),
|
||||
isDisabled: isCasualSeller,
|
||||
contents: <DetailsSubscriptions showNotice={ isCasualSeller } />,
|
||||
contents: (
|
||||
/*
|
||||
* Note: The link should be only displayed if the subscriptions plugin is not installed.
|
||||
* But when the plugin is not active, this option is completely hidden;
|
||||
* This means: In the current configuration, we never show the link.
|
||||
*/
|
||||
<DetailsSubscriptions
|
||||
showLink={ false }
|
||||
showNotice={ isCasualSeller }
|
||||
/>
|
||||
),
|
||||
},
|
||||
];
|
||||
return (
|
||||
|
@ -117,14 +127,19 @@ const DetailsPhysical = () => (
|
|||
</ul>
|
||||
);
|
||||
|
||||
const DetailsSubscriptions = ( { showNotice } ) => (
|
||||
const DetailsSubscriptions = ( { showLink, showNotice } ) => (
|
||||
<>
|
||||
<a
|
||||
target="__blank"
|
||||
href="https://woocommerce.com/document/woocommerce-paypal-payments/#subscriptions-faq"
|
||||
>
|
||||
{ __( 'WooCommerce Subscriptions', 'woocommerce-paypal-payments' ) }
|
||||
</a>
|
||||
{ showLink && (
|
||||
<a
|
||||
target="__blank"
|
||||
href="https://woocommerce.com/document/woocommerce-paypal-payments/#subscriptions-faq"
|
||||
>
|
||||
{ __(
|
||||
'WooCommerce Subscriptions',
|
||||
'woocommerce-paypal-payments'
|
||||
) }
|
||||
</a>
|
||||
) }
|
||||
{ showNotice && (
|
||||
<p>
|
||||
{ __(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue