💄 Make the send-only message look a bit nicer

This commit is contained in:
Philipp Stracker 2025-01-10 19:12:22 +01:00
parent 0bc06deebf
commit 0735cae04f
No known key found for this signature in database

View file

@ -1,18 +1,54 @@
import { __, sprintf } from '@wordpress/i18n';
import Container from '../ReusableComponents/Container';
import SettingsCard from '../ReusableComponents/SettingsCard';
import SettingsNavigation from './SettingsNavigation';
const SendOnlyMessage = () => {
const settingsPageUrl = '/wp-admin/admin.php?page=wc-settings';
const message = sprintf(
/* translators: 1: URL to the WooCommerce store location settings */
__(
'Your current <a href="%1$s">WooCommerce store location</a> is in a "send-only" country, according to PayPal\'s policies. Sellers in these countries are unable to receive payments via PayPal. Since receiving payments is essential for using the PayPal Payments extension, you will not be able to connect your PayPal account while operating from a "send-only" country. To activate PayPal, please update your <a href="%1$s">WooCommerce store location</a> to a supported region and connect a PayPal account eligible for receiving payments.',
'woocommerce-paypal-payments'
),
settingsPageUrl
return (
<>
<SettingsNavigation />
<Container page="settings">
<SettingsCard
title={ __(
'"Send-only" Country',
'woocommerce-paypal-payments'
) }
description={ __(
'Sellers in your country are unable to receive payments via PayPal',
'woocommerce-paypal-payments'
) }
>
<p>
{ __(
'Your current WooCommerce store location is in a "send-only" country, according to PayPal\'s policies',
'woocommerce-paypal-payments'
) }
</p>
<p>
{ __(
'Since receiving payments is essential for using the PayPal Payments extension, you are unable to connect your PayPal account while operating from a "send-only" country.',
'woocommerce-paypal-payments'
) }
</p>
<p
dangerouslySetInnerHTML={ {
__html: sprintf(
/* translators: 1: URL to the WooCommerce store location settings */
__(
'To activate PayPal, please update your <a href="%1$s">WooCommerce store location</a> to a supported region and connect a PayPal account eligible for receiving payments.',
'woocommerce-paypal-payments'
),
settingsPageUrl
),
} }
/>
</SettingsCard>
</Container>
</>
);
return <p dangerouslySetInnerHTML={ { __html: message } } />;
};
export default SendOnlyMessage;