Onboarding: Change account required text on biz step. (https://github.com/woocommerce/woocommerce-admin/pull/4909)

This commit is contained in:
Timmy Crawford 2020-08-03 15:08:07 -07:00 committed by GitHub
parent 979251784d
commit 1855057d25
1 changed files with 10 additions and 12 deletions

View File

@ -356,28 +356,26 @@ class BusinessDetails extends Component {
</p> </p>
); );
} }
const accountRequiredText = this.bundleInstall
? __(
'User accounts are required to use these features.',
'woocommerce-admin'
)
: '';
return ( return (
<Fragment> <Fragment>
<p> <p>
{ sprintf( { sprintf(
_n( _n(
'The following plugin will be installed for free: %s', 'The following plugin will be installed for free: %s. %s',
'The following plugins will be installed for free: %s', 'The following plugins will be installed for free: %s. %s',
extensions.length, extensions.length,
'woocommerce-admin' 'woocommerce-admin'
), ),
extensionsList extensionsList,
accountRequiredText
) } ) }
</p> </p>
{ this.bundleInstall && (
<p>
{ __(
'An account is required to use these features.',
'woocommerce-admin'
) }
</p>
) }
</Fragment> </Fragment>
); );
} }