woocommerce/plugins/woocommerce-blocks/assets/js/blocks/featured-product
Albert Juhé Lluveras 2504bffdfa Create `withProduct` HOC (https://github.com/woocommerce/woocommerce-blocks/pull/779)
* Reset 'loaded' state in Featured Product and Category blocks

* Minor code improvements

* Remove state from ApiErrorPlaceholder

* Move getProduct to a HOC

* Undo changes in Featured Category

* Update proptypes

* Move error messages to <ApiErrorPlaceholder>

* Reorder props

* Move lifecycle methods to HOC

* Make <FeaturedProduct> component presentational

* Move withProduct to js/hocs

* Create NAMESPACE constant in utils

* Create getProduct util function

* Set 'error' and 'product' state to null instead of 'false' when they have no value

* Prevent getImageSrcFromProduct and getImageIdFromProduct returning an error when 'product' is not an object

* Add HOC tests

* Use 'toBe' and 'toBeNull' jest expect methods instead of 'toEqual' when possible

* Export HOCs from index

* Move mock implementation to beforeEach
2019-08-02 13:56:53 +02:00
..
block.js Create `withProduct` HOC (https://github.com/woocommerce/woocommerce-blocks/pull/779) 2019-08-02 13:56:53 +02:00
editor.scss Experiment: Handling API fetch errors (https://github.com/woocommerce/woocommerce-blocks/pull/679) 2019-07-11 11:12:44 +01:00
index.js Featured Product Block: Make it possible to feature a specific product variation (https://github.com/woocommerce/woocommerce-blocks/pull/608) 2019-07-09 10:48:31 +01:00
style.scss Add pre-commit CSS and JS linting (https://github.com/woocommerce/woocommerce-blocks/pull/699) 2019-07-09 11:50:09 +01:00
utils.js Create `withProduct` HOC (https://github.com/woocommerce/woocommerce-blocks/pull/779) 2019-08-02 13:56:53 +02:00