File tree Expand file tree Collapse file tree 3 files changed +15
-13
lines changed
client/subscription-product-onboarding Expand file tree Collapse file tree 3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change
1
+ Significance: patch
2
+ Type: update
3
+
4
+ update: subscription-product-onboarding to use WP components bundled within the WP installation
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ import React from 'react';
6
6
import { Button } from 'wcpay/components/wp-components-wrapped/components/button' ;
7
7
import { Icon } from 'wcpay/components/wp-components-wrapped/components/icon' ;
8
8
import { Modal } from 'wcpay/components/wp-components-wrapped/components/modal' ;
9
+ import { ExternalLink } from 'wcpay/components/wp-components-wrapped/components/external-link' ;
10
+ import UnbundledWpComponentsProvider from 'wcpay/wordpress-components-context/unbundled-wp-components-provider' ;
9
11
import {
10
12
createInterpolateElement ,
11
13
useEffect ,
@@ -87,14 +89,7 @@ const SubscriptionProductOnboardingModalContent = ( {
87
89
'woocommerce-payments'
88
90
) ,
89
91
{
90
- a : (
91
- // eslint-disable-next-line jsx-a11y/anchor-has-content
92
- < a
93
- href = "https://wordpress.com/tos/"
94
- target = "_blank"
95
- rel = "noreferrer"
96
- />
97
- ) ,
92
+ a : < ExternalLink href = "https://wordpress.com/tos/" /> ,
98
93
}
99
94
) }
100
95
</ p >
@@ -135,11 +130,13 @@ const SubscriptionProductOnboardingModal = () => {
135
130
}
136
131
137
132
return (
138
- < SubscriptionProductOnboardingModalContent
139
- onRequestClose = { ( ) => {
140
- setOpen ( false ) ;
141
- } }
142
- />
133
+ < UnbundledWpComponentsProvider >
134
+ < SubscriptionProductOnboardingModalContent
135
+ onRequestClose = { ( ) => {
136
+ setOpen ( false ) ;
137
+ } }
138
+ />
139
+ </ UnbundledWpComponentsProvider >
143
140
) ;
144
141
} ;
145
142
Original file line number Diff line number Diff line change 10
10
}
11
11
12
12
.components-modal__content {
13
+ padding-top : 0 ;
13
14
padding-bottom : 0 ;
14
15
margin-top : 0 ;
15
16
You can’t perform that action at this time.
0 commit comments