mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Settings UI: Move Things To Do config data to a separate definition file. Add settings highlighting. Add todos dismissing.
This commit is contained in:
parent
51b2582589
commit
0daf56b2af
20 changed files with 612 additions and 300 deletions
|
@ -50,10 +50,18 @@ export const selectTab = ( tabId, scrollToId ) => {
|
|||
// Resolve after scroll animation
|
||||
setTimeout( resolve, 300 );
|
||||
} else {
|
||||
console.error(
|
||||
`Failed to scroll: Element with ID "${
|
||||
scrollToId || 'ppcp-settings-container'
|
||||
}" not found`
|
||||
);
|
||||
resolve();
|
||||
}
|
||||
}, 100 );
|
||||
} else {
|
||||
console.error(
|
||||
`Failed to select tab: Tab with ID "${ tabId }" not found`
|
||||
);
|
||||
resolve();
|
||||
}
|
||||
} );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue