Onboarding: Update task list success notices (https://github.com/woocommerce/woocommerce-admin/pull/3508)
This commit is contained in:
parent
7d9aaf6afa
commit
07388aa5f1
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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( {}, '/', {} ) );
|
||||
}
|
||||
|
||||
|
|
|
@ -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( {}, '/', {} ) );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Reference in New Issue