Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { __, sprintf } from '@wordpress/i18n';
import { useGetCapabilities } from 'wcstripe/data/account';
import PaymentMethodUnavailablePill, {
Expand Down
2 changes: 1 addition & 1 deletion client/components/payment-method-deprecation-pill/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { __ } from '@wordpress/i18n';
import PaymentMethodUnavailablePill, {
PaymentMethodPopoverLink,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { __, sprintf } from '@wordpress/i18n';
import { usePaymentMethodCurrencies } from 'utils/use-payment-method-currencies';
import usePaymentMethodUnavailableReason from 'utils/use-payment-method-unavailable-reason';
Expand Down
2 changes: 1 addition & 1 deletion client/components/webhook-information/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from '@emotion/styled';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { __ } from '@wordpress/i18n';
import { ExternalLink } from '@wordpress/components';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ADMIN_URL, getSetting } from '@woocommerce/settings';
import React, { useMemo } from 'react';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { loadStripe } from '@stripe/stripe-js';
import styled from '@emotion/styled';
import ExpressCheckoutPreviewComponent from './express-checkout-preview-component';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { ADMIN_URL, getSetting } from '@woocommerce/settings';
import React, { useMemo } from 'react';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { Elements } from '@stripe/react-stripe-js';
import { loadStripe } from '@stripe/stripe-js';
import styled from '@emotion/styled';
Expand Down
2 changes: 1 addition & 1 deletion client/settings/connect-stripe-account/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { React } from 'react';
import styled from '@emotion/styled';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import CardBody from '../card-body';
import { Button, Card, ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { render, screen } from '@testing-library/react';
import { getFormattedPaymentMethodDescription } from '../get-formatted-payment-method-description';
import {
PAYMENT_METHOD_AFFIRM,
Expand Down Expand Up @@ -30,11 +31,13 @@ describe( 'getFormattedPaymentMethodDescription', () => {
const result = getFormattedPaymentMethodDescription(
PAYMENT_METHOD_AFTERPAY_CLEARPAY
);
expect( result ).toEqual(
expect.arrayContaining( [
'Allow customers to pay over time with Afterpay. ',
] )
);
render( result );

expect(
screen.getByText(
/^Allow customers to pay over time with Afterpay\..*/
)
).toBeInTheDocument();
} );

it( 'should return default description for other payment methods', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import PaymentMethodsMap from '../../payment-methods-map';
import {
PAYMENT_METHOD_AFFIRM,
Expand Down
2 changes: 1 addition & 1 deletion client/settings/optimized-checkout-notice/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import styled from '@emotion/styled';
import React, { useState } from 'react';
import { info } from '@wordpress/icons';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { __ } from '@wordpress/i18n';
import { Icon, Notice } from '@wordpress/components';
import apiFetch from '@wordpress/api-fetch';
Expand Down
2 changes: 1 addition & 1 deletion client/settings/payment-request-section/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global wc_stripe_settings_params */

import React from 'react';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import PaymentRequestIcon from '../../payment-method-icons/payment-request';
import LinkIcon from '../../payment-method-icons/link';
import CardBody from '../card-body';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* global wc_stripe_settings_params */
import { React } from 'react';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { __ } from '@wordpress/i18n';
import { useDispatch } from '@wordpress/data';
import { ExternalLink } from '@wordpress/components';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { React } from 'react';
import styled from '@emotion/styled';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { useDispatch } from '@wordpress/data';
import { __ } from '@wordpress/i18n';
import apiFetch from '@wordpress/api-fetch';
Expand Down
2 changes: 1 addition & 1 deletion client/settings/payment-settings/test-mode-checkbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { React } from 'react';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { __ } from '@wordpress/i18n';
import { CheckboxControl } from '@wordpress/components';
import { useTestMode } from 'wcstripe/data';
Expand Down
2 changes: 1 addition & 1 deletion client/settings/payments-and-transactions-section/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useContext } from 'react';
import styled from '@emotion/styled';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import CardBody from '../card-body';
import StatementPreviewsWrapper from './statement-previews-wrapper';
import StatementPreview from './statement-preview';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import styled from '@emotion/styled';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import React, { useContext, useState } from 'react';
import { Icon, info } from '@wordpress/icons';
import { __ } from '@wordpress/i18n';
Expand Down
2 changes: 1 addition & 1 deletion client/settings/stripe-auth-account/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import StripeAuthDiagram from './stripe-auth-diagram';
import StripeAuthActions from './stripe-auth-actions';
import AccountStatusPanel from './account-status-panel';
Expand Down
2 changes: 1 addition & 1 deletion client/settings/stripe-auth-account/stripe-auth-actions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* global wc_stripe_settings_params, ajaxurl */
import { React, useState, useEffect } from 'react';
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import ConfigureWebhookButton from './configure-webhook-button';
import { Button, ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
Expand Down
2 changes: 1 addition & 1 deletion client/settings/stripe-auth-account/webhook-help-text.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import interpolateComponents from 'interpolate-components';
import interpolateComponents from '@automattic/interpolate-components';
import { __, sprintf } from '@wordpress/i18n';
import { useEffect, useState } from '@wordpress/element';
import {
Expand Down
Loading
Loading