Skip to content

Commit

Permalink
Mock API call for ItemView
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 committed Apr 21, 2021
1 parent 2e0376c commit 11e0232
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/ItemView/ItemView.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ The component relies of context of the [ItemProvider](/?path=/docs/components-it
<Canvas>
<Story
name="Default"
args={{}}
args={{
// These props typically refer to a fetch to the API but in this case
// match the mocked context above to skip the fetch request and display data.
// If you change the sample data, change these props to match.
queue: "ce",
number: 100
}}
>
{ args => <ItemView {...args} /> }
</Story>
Expand Down

0 comments on commit 11e0232

Please sign in to comment.