This commit is contained in:
Joshua T Flowers 2020-01-06 23:27:09 +08:00 committed by GitHub
parent 7d9aaf6afa
commit 07388aa5f1
5 changed files with 29 additions and 4 deletions

View File

@ -95,7 +95,13 @@ class Appearance extends Component {
}
if ( 'notice' === step && isRequestSuccessful ) {
createNotice( 'success', __( 'Store notice updated sucessfully.', 'woocommerce-admin' ) );
createNotice(
'success',
__(
"🎨 Your store is looking great! Don't forget to continue personalizing it.",
'woocommerce-admin'
)
);
this.completeStep();
}

View File

@ -92,11 +92,19 @@ class Payments extends Component {
}
completeTask() {
this.props.updateOptions( {
const { createNotice, updateOptions } = this.props;
updateOptions( {
[ 'woocommerce_task_list_payments' ]: {
completed: 1,
},
} );
createNotice(
'success',
__( '💰 Ka-ching! Your store can now accept payments 💳', 'woocommerce-admin' )
);
getHistory().push( getNewPath( {}, '/', {} ) );
}

View File

@ -130,6 +130,7 @@ class Shipping extends Component {
}
completeStep() {
const { createNotice } = this.props;
const { step } = this.state;
const steps = this.getSteps();
const currentStepIndex = steps.findIndex( s => s.key === step );
@ -138,6 +139,13 @@ class Shipping extends Component {
if ( nextStep ) {
this.setState( { step: nextStep.key } );
} else {
createNotice(
'success',
__(
"📦 Shipping is done! Don't worry, you can always change it later.",
'woocommerce-admin'
)
);
getHistory().push( getNewPath( {}, '/', {} ) );
}
}

View File

@ -164,7 +164,10 @@ class Tax extends Component {
...getSetting( 'onboarding', {} ),
isTaxComplete: true,
} );
createNotice( 'success', __( 'Your tax settings have been updated.', 'woocommerce-admin' ) );
createNotice(
'success',
__( "You're awesome! One less item on your to-do list ✅", 'woocommerce-admin' )
);
if ( automatedTaxEnabled ) {
getHistory().push( getNewPath( {}, '/', {} ) );
} else {

View File

@ -16,7 +16,7 @@ import { getAdminLink } from '@woocommerce/wc-admin-settings';
*/
const showProductCompletionNotice = () => {
dispatch( 'core/notices' ).createSuccessNotice(
__( 'You created your first product!', 'woocommerce-admin' ),
__( '🎉 Congrats on adding your first product!', 'woocommerce-admin' ),
{
id: 'WOOCOMMERCE_ONBOARDING_PRODUCT_NOTICE',
actions: [