Onboarding: Add TOS note to bundle install. (https://github.com/woocommerce/woocommerce-admin/pull/5096)
This commit is contained in:
parent
3c6483e842
commit
6e419e14ee
|
@ -17,6 +17,7 @@ import { keys, get, pickBy } from 'lodash';
|
|||
import {
|
||||
H,
|
||||
Card,
|
||||
Link,
|
||||
SelectControl,
|
||||
Form,
|
||||
TextControl,
|
||||
|
@ -361,18 +362,39 @@ class BusinessDetails extends Component {
|
|||
)
|
||||
: '';
|
||||
return (
|
||||
<Text variant="caption" as="p">
|
||||
{ sprintf(
|
||||
_n(
|
||||
'The following plugin will be installed for free: %s. %s',
|
||||
'The following plugins will be installed for free: %s. %s',
|
||||
extensions.length,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
extensionsList,
|
||||
accountRequiredText
|
||||
<div className="woocommerce-profile-wizard__footnote">
|
||||
<Text variant="caption" as="p">
|
||||
{ sprintf(
|
||||
_n(
|
||||
'The following plugin will be installed for free: %s. %s',
|
||||
'The following plugins will be installed for free: %s. %s',
|
||||
extensions.length,
|
||||
'woocommerce-admin'
|
||||
),
|
||||
extensionsList,
|
||||
accountRequiredText
|
||||
) }
|
||||
</Text>
|
||||
{ this.bundleInstall && (
|
||||
<Text variant="caption" as="p">
|
||||
{ interpolateComponents( {
|
||||
mixedString: __(
|
||||
'By installing Jetpack and WooCommerce Services plugins for free you agree to our {{link}}Terms of Service{{/link}}.',
|
||||
'woocommerce-admin'
|
||||
),
|
||||
components: {
|
||||
link: (
|
||||
<Link
|
||||
href="https://wordpress.com/tos/"
|
||||
target="_blank"
|
||||
type="external"
|
||||
/>
|
||||
),
|
||||
},
|
||||
} ) }
|
||||
</Text>
|
||||
) }
|
||||
</Text>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -133,6 +133,14 @@
|
|||
display: flex;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.woocommerce-profile-wizard__footnote {
|
||||
p {
|
||||
color: $gray-700;
|
||||
text-align: left;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#woocommerce-layout__primary {
|
||||
|
|
Loading…
Reference in New Issue