More adjustments

This commit is contained in:
Ilyas Foo 2022-04-06 16:25:08 +08:00
parent 3050cacc39
commit ffdf1e6c02
5 changed files with 5 additions and 24 deletions

View File

@ -49,7 +49,7 @@ export const WCPayCardBody = ( {
target="_blank"
type="external"
rel="noreferrer"
href="https://woocommerce.com/payments/?utm_medium=product"
href="https://wordpress.com/tos/"
onClick={ onLinkClick }
>
{ __( 'Terms of Service', 'woocommerce' ) }
@ -60,7 +60,7 @@ export const WCPayCardBody = ( {
target="_blank"
type="external"
rel="noreferrer"
href="https://woocommerce.com/payments/?utm_medium=product"
href="https://automattic.com/privacy/"
onClick={ onLinkClick }
>
{ __( 'Privacy Policy', 'woocommerce' ) }

View File

@ -7,7 +7,7 @@ export default ( { width = 141, height = 148, ...props } ) => (
<svg
width={ width }
height={ height }
viewBox={ `0 0 ${ width } ${ height }` }
viewBox={ `-10 0 ${ width } ${ height }` }
fill="none"
xmlns="http://www.w3.org/2000/svg"
{ ...props }

View File

@ -7,7 +7,7 @@ export default ( { width = 140, height = 148, ...props } ) => (
<svg
width={ width }
height={ height }
viewBox={ `0 10 ${ width } ${ height }` }
viewBox={ `5 10 ${ width } ${ height }` }
fill="none"
xmlns="http://www.w3.org/2000/svg"
{ ...props }

View File

@ -7,7 +7,7 @@ export default ( { width = 157, height = 148, ...props } ) => (
<svg
width={ width }
height={ height }
viewBox={ `0 13 ${ width } ${ height }` }
viewBox={ `0 10 ${ width } ${ height }` }
fill="none"
xmlns="http://www.w3.org/2000/svg"
{ ...props }

View File

@ -2,8 +2,6 @@
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import interpolateComponents from '@automattic/interpolate-components';
import { Link } from '@woocommerce/components';
import { recordEvent } from '@woocommerce/tracks';
import {
WCPayCard,
@ -20,23 +18,6 @@ import { useDispatch } from '@wordpress/data';
import { Action } from '../Action';
import { connectWcpay } from './utils';
const TosPrompt = () =>
interpolateComponents( {
mixedString: __(
'Upon clicking "Get started", you agree to the {{link}}Terms of service{{/link}}. Next well ask you to share a few details about your business to create your account.',
'woocommerce'
),
components: {
link: (
<Link
href={ 'https://wordpress.com/tos/' }
target="_blank"
type="external"
/>
),
},
} );
export const Suggestion = ( { paymentGateway, onSetupCallback = null } ) => {
const {
id,