23b175d246
* prefersCollection controls shipping visibility * Remove log * Create skeleton pickup options block based on shipping methods * Filter locations to local pickup methods * Correct case of block name * Location styling * Pull pickup details from new core fields * Fix linting warnings on new types * Remove blocks_local_pickup check (this does not exist yet) * Move enable_local_pickup_without_address so it works under all contexts * Fix display of FREE when there are a mix of prices * Remove undefined return value * Update block descriptions * fix message * Correct case Co-authored-by: Nadir Seghir <nadir.seghir@gmail.com> |
||
---|---|---|
.. | ||
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.