Add story to test list of products published
This commit is contained in:
parent
62ddce81c0
commit
7f2361c025
2 changed files with 1707 additions and 0 deletions
File diff suppressed because it is too large
Load diff
|
@ -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={[]} />);
|
||||||
|
|
Loading…
Reference in a new issue