2021-11-05 20:32:02 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { __ } from '@wordpress/i18n';
|
2022-02-21 02:34:25 +00:00
|
|
|
import interpolateComponents from '@automattic/interpolate-components';
|
2021-11-05 20:32:02 +00:00
|
|
|
import { Link } from '@woocommerce/components';
|
|
|
|
import { recordEvent } from '@woocommerce/tracks';
|
|
|
|
import { updateQueryString } from '@woocommerce/navigation';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { PartnerCard } from '../components/partner-card';
|
|
|
|
import logo from './logo.png';
|
|
|
|
import { TaxChildProps } from '../utils';
|
|
|
|
|
2021-11-15 20:09:02 +00:00
|
|
|
export const Card: React.FC< TaxChildProps > = () => {
|
2021-11-05 20:32:02 +00:00
|
|
|
return (
|
|
|
|
<PartnerCard
|
2022-03-30 09:00:04 +00:00
|
|
|
name={ __( 'WooCommerce Tax', 'woocommerce' ) }
|
2021-11-05 20:32:02 +00:00
|
|
|
logo={ logo }
|
2022-03-30 09:00:04 +00:00
|
|
|
description={ __( 'Best for new stores', 'woocommerce' ) }
|
2021-11-05 20:32:02 +00:00
|
|
|
benefits={ [
|
2022-03-30 09:00:04 +00:00
|
|
|
__( 'Real-time sales tax calculation', 'woocommerce' ),
|
2021-11-05 20:32:02 +00:00
|
|
|
interpolateComponents( {
|
|
|
|
mixedString: __(
|
|
|
|
'{{strong}}Single{{/strong}} economic nexus compliance',
|
2022-03-30 09:00:04 +00:00
|
|
|
'woocommerce'
|
2021-11-05 20:32:02 +00:00
|
|
|
),
|
|
|
|
components: {
|
|
|
|
strong: <strong />,
|
|
|
|
},
|
|
|
|
} ),
|
|
|
|
interpolateComponents( {
|
|
|
|
mixedString: __(
|
|
|
|
'Powered by {{link}}Jetpack{{/link}}',
|
2022-03-30 09:00:04 +00:00
|
|
|
'woocommerce'
|
2021-11-05 20:32:02 +00:00
|
|
|
),
|
|
|
|
components: {
|
|
|
|
link: (
|
|
|
|
<Link
|
|
|
|
type="external"
|
|
|
|
href="https://woocommerce.com/products/jetpack/?utm_medium=product"
|
|
|
|
target="_blank"
|
2022-04-21 04:44:19 +00:00
|
|
|
>
|
|
|
|
<></>
|
|
|
|
</Link>
|
2021-11-05 20:32:02 +00:00
|
|
|
),
|
|
|
|
},
|
|
|
|
} ),
|
|
|
|
// eslint-disable-next-line @wordpress/i18n-translator-comments
|
2022-03-30 09:00:04 +00:00
|
|
|
__( '100% free', 'woocommerce' ),
|
2021-11-05 20:32:02 +00:00
|
|
|
] }
|
|
|
|
terms={ interpolateComponents( {
|
|
|
|
mixedString: __(
|
|
|
|
'By installing WooCommerce Tax and Jetpack you agree to the {{link}}Terms of Service{{/link}}.',
|
2022-03-30 09:00:04 +00:00
|
|
|
'woocommerce'
|
2021-11-05 20:32:02 +00:00
|
|
|
),
|
|
|
|
components: {
|
|
|
|
link: (
|
|
|
|
<Link
|
|
|
|
href={ 'https://wordpress.com/tos/' }
|
|
|
|
target="_blank"
|
|
|
|
type="external"
|
2022-04-21 04:44:19 +00:00
|
|
|
>
|
|
|
|
<></>
|
|
|
|
</Link>
|
2021-11-05 20:32:02 +00:00
|
|
|
),
|
|
|
|
},
|
|
|
|
} ) }
|
2022-03-30 09:00:04 +00:00
|
|
|
actionText={ __( 'Continue setup', 'woocommerce' ) }
|
2021-11-05 20:32:02 +00:00
|
|
|
onClick={ () => {
|
|
|
|
recordEvent( 'tasklist_tax_select_option', {
|
|
|
|
selected_option: 'woocommerce-tax',
|
|
|
|
} );
|
|
|
|
updateQueryString( {
|
|
|
|
partner: 'woocommerce-tax',
|
|
|
|
} );
|
|
|
|
} }
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
};
|