🚚 Move component to the onboarding module

This commit is contained in:
Philipp Stracker 2025-02-04 17:53:51 +01:00
parent 63f538fd62
commit 45051bb9f4
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,8 @@
import { __, sprintf } from '@wordpress/i18n';
import { countryPriceInfo } from '../../utils/countryPriceInfo';
import { CommonHooks } from '../../data';
import { countryPriceInfo } from '../../../../utils/countryPriceInfo';
import { learnMoreLinks } from '../../../../utils/countryInfoLinks';
import { CommonHooks } from '../../../../data';
const PricingDescription = () => {
const { storeCountry } = CommonHooks.useWooSettings();
@ -11,8 +12,7 @@ const PricingDescription = () => {
}
const lastDate = 'October 25th, 2024'; // TODO -- needs to be the last plugin update date.
const detailsUrl =
'https://woocommerce.com/document/woocommerce-paypal-payments/#manual-credential-input';
const countryLinks = learnMoreLinks[ storeCountry ] || learnMoreLinks.US;
const label = sprintf(
// translators: %1$s: Pricing date, %2$s Link to PayPal price-details page.
@ -21,7 +21,7 @@ const PricingDescription = () => {
'woocommerce-paypal-payments'
),
lastDate,
detailsUrl
countryLinks.PaymentDetails
);
return (

View file

@ -1,6 +1,6 @@
import { __ } from '@wordpress/i18n';
import PricingDescription from '../../../ReusableComponents/PricingDescription';
import PricingDescription from './PricingDescription';
import PaymentFlow from './PaymentFlow';
const WelcomeDocs = ( { useAcdc, isFastlane, isPayLater, storeCountry } ) => {

View file

@ -2,7 +2,7 @@ import { __ } from '@wordpress/i18n';
import { CommonHooks, OnboardingHooks } from '../../../../data';
import { OptionSelector } from '../../../ReusableComponents/Fields';
import PricingDescription from '../../../ReusableComponents/PricingDescription';
import PricingDescription from '../Components/PricingDescription';
import OnboardingHeader from '../Components/OnboardingHeader';
import PaymentFlow from '../Components/PaymentFlow';