Add story to test list of products published

This commit is contained in:
Gabriel L Martinez 2020-04-13 23:46:40 -04:00
parent 62ddce81c0
commit 7f2361c025
2 changed files with 1707 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -58,4 +58,10 @@ storiesOf("Views / Products / Product list", module)
disabled={true} disabled={true}
/> />
)) ))
.add("published", () => (
<ProductListPage
{...props}
products={products.filter(product => product.isPublished)}
/>
))
.add("no data", () => <ProductListPage {...props} products={[]} />); .add("no data", () => <ProductListPage {...props} products={[]} />);