3c6229879a
* Add LocalPickupSelect component This will be used to render the local pickup options and also display a title if there are more than one package (e.g. if WC subs adds them) * Add tests for LocalPickupSelect component * Make title optional * Add packageCount as an option to LocalPickupSelect * Revert "Add packageCount as an option to LocalPickupSelect" This reverts commit 10b1dc9497aa6c4329aee7e74e1404cb9645c3b9. * Add ackage count to LocalPickupSelect * Add package count and remove unused variable from renderPickupLocation |
||
---|---|---|
.. | ||
components | ||
context | ||
hocs | ||
hooks | ||
utils | ||
README.MD |
README.MD
Base Components/Context/Hooks
Base components are designed to be used on the frontend of a store. Due to this, we need to avoid using heavy WordPress externals as dependencies (wp-components, wp-block-editor, etc). To get around this, import from a local package instead.
e.g. Instead of importing from @wordpress/components
, use:
import { Component } from 'wordpress-components';
Check the built *.assets.php
files to ensure extra dependencies aren't being added to the build.