Onboarding: Center button to continue without installation (https://github.com/woocommerce/woocommerce-admin/pull/3588)

* Center button to continue without installation

* Remove margin on last benefit p tag
This commit is contained in:
Joshua T Flowers 2020-01-23 15:11:40 +08:00 committed by GitHub
parent aed9216ab6
commit f8195a7b13
2 changed files with 27 additions and 16 deletions

View File

@ -285,22 +285,24 @@ class BusinessDetails extends Component {
</div>
{ installExtensions && (
<Plugins
onComplete={ () => {
goToNextStep();
} }
onSkip={ () => {
goToNextStep();
} }
onError={ () => {
this.setState( {
extensionInstallError: true,
isInstallingExtensions: false,
} );
} }
autoInstall
pluginSlugs={ extensionsToInstall }
/>
<div className="woocommerce-profile-wizard__card-actions">
<Plugins
onComplete={ () => {
goToNextStep();
} }
onSkip={ () => {
goToNextStep();
} }
onError={ () => {
this.setState( {
extensionInstallError: true,
isInstallingExtensions: false,
} );
} }
autoInstall
pluginSlugs={ extensionsToInstall }
/>
</div>
) }
</Fragment>
);

View File

@ -36,6 +36,14 @@
}
}
.woocommerce-profile-wizard__card-actions {
text-align: center;
.components-button {
margin-top: $gap-small;
}
}
.woocommerce-profile-wizard__container {
.woocommerce-profile-wizard__tos {
font-size: 12px;
@ -172,6 +180,7 @@
&:last-child p {
border-bottom: 0;
margin-bottom: 0;
}
}