From 9bc60466c0cec5f19d6c9273c10036cc531217a3 Mon Sep 17 00:00:00 2001 From: Rua Haszard Date: Mon, 25 Sep 2023 15:20:29 +1300 Subject: [PATCH] update docs links to correct urls for disputes vs. inquiries --- .../dispute-details/dispute-notice.tsx | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/client/payment-details/dispute-details/dispute-notice.tsx b/client/payment-details/dispute-details/dispute-notice.tsx index 8263119b4f5..b22529290d9 100644 --- a/client/payment-details/dispute-details/dispute-notice.tsx +++ b/client/payment-details/dispute-details/dispute-notice.tsx @@ -35,19 +35,22 @@ const DisputeNotice: React.FC< DisputeNoticeProps > = ( { /* translators: link to dispute documentation. %s is the clients claim for the dispute, eg "The cardholder claims this is an unrecognized charge." */ let noticeText = __( '%s Challenge the dispute if you believe the claim is invalid, ' + - 'or accept to forfeit the funds and pay the dispute fee. ' + - 'Non-response will result in an automatic loss. Learn more about responding to disputes', + 'or accept to forfeit the funds and pay the dispute fee. ' + + 'Non-response will result in an automatic loss. Learn more about responding to disputes', 'woocommerce-payments' ); - let learnMoreDocsUrl = 'https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/#section-3'; + let learnMoreDocsUrl = + 'https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/#responding'; if ( isInquiry( dispute ) ) { /* translators: link to dispute inquiry documentation. %s is the clients claim for the dispute, eg "The cardholder claims this is an unrecognized charge." */ noticeText = __( '%s You can challenge their claim if you believe it’s invalid. ' + - 'Not responding will result in an automatic loss. Learn more', + 'Not responding will result in an automatic loss. Learn more about payment inquiries', 'woocommerce-payments' - ) + ); + learnMoreDocsUrl = + 'https://woocommerce.com/document/woopayments/fraud-and-disputes/managing-disputes/#inquiries'; } return ( @@ -57,17 +60,20 @@ const DisputeNotice: React.FC< DisputeNoticeProps > = ( { className="dispute-notice" isDismissible={ false } > - { createInterpolateElement( sprintf( noticeText, shopperDisputeReason ), { - a: ( - // eslint-disable-next-line jsx-a11y/anchor-has-content - - ), - strong: , - } ) } + { createInterpolateElement( + sprintf( noticeText, shopperDisputeReason ), + { + a: ( + // eslint-disable-next-line jsx-a11y/anchor-has-content + + ), + strong: , + } + ) } ); };