Skip to content

Commit

Permalink
docs(storybook): motivate to play with mock params
Browse files Browse the repository at this point in the history
  • Loading branch information
bramzijp-code committed Mar 3, 2024
1 parent f7e9ed1 commit 6255256
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions apps/storybook/src/examples/Product.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@ const Product = () => {
<Typography variant="subtitle1" color="textSecondary" gutterBottom>
{`Available Stock: ${productDetails.availableStock}`}
</Typography>
<Typography variant="subtitle1" color="textSecondary" gutterBottom>
Using the mock dashboard opened with the button in the bottom right
corner;
<br />
try changing the amount of stock and the "canReview" boolean.
Requires reload to see the changes. Toggling "productExists" to
false will show this app does not handle errors.
</Typography>
<Typography variant="subtitle1" color="textSecondary" gutterBottom>
Try adding a review and reloading the page.
</Typography>
<Typography variant="h6" color="primary" gutterBottom>
Generated by ChatGPT
</Typography>
Expand Down

0 comments on commit 6255256

Please sign in to comment.