mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
🚚 Move component to the onboarding module
This commit is contained in:
parent
63f538fd62
commit
45051bb9f4
3 changed files with 7 additions and 7 deletions
|
@ -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 (
|
|
@ -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 } ) => {
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue