eea63f602f
* Add onboarding task status API endpoint. * Add task status to onboarding data store. * Update appearance task to use onboarding store for status info. * Update main task list component to use onboarding data store for status info. * Clear onboarding status info "cache" when setting shipping rates in the task list. * Clear onboarding status info "cache" when enabling payment methods from the task list. * Fix onboarding data store reducer tests. * Clean up redundant code, nest task status settings under new key for hydration. * Include tasks status in onboarding data hydration. * Update tax task to use onboarding data store for status info. * Avoid continually rehydrating onboarding data. * Refactor payment task method retrieval to use onboarding data store. * Fix bug with disappearing appearance tax steps. * Update appearance completion faster by using hydrated onboarding value. * Avoid PHP warnings when onboarding isn't enabled. * Remove unused imports. |
||
---|---|---|
.. | ||
activity-panel | ||
test | ||
README.md | ||
index.js | ||
style.scss |
README.md
Header
A basic component for the app header. The header outputs breadcrumbs via the sections
prop (required) and access to the activity panel. It also sets the document title.
How to use:
import Header from 'header';
render: function() {
return (
<Header
sections={ [
[ '/analytics', __( 'Analytics', 'woocommerce-admin' ) ],
__( 'Report Title', 'woocommerce-admin' ),
] }
/>
);
}
Props
sections
(required): Used to generate breadcrumbs. Accepts a single items or an array of items. To make an item a link, wrap it in an array with a relative link (example:[ '/analytics', __( 'Analytics', 'woocommerce-admin' ) ]
).isEmbedded
: Boolean describing if the header is embedded on an existing wp-admin page. False if rendered as part of a full react page.
Activity Panel
This component contains the Activity Panel. This is shown on every page and is rendered as part of the header.