Skip to content

Commit

Permalink
Merge pull request #28559 from kyletsang/fix-button-story-typo
Browse files Browse the repository at this point in the history
Docs: Fix typo in generated button story
  • Loading branch information
shilman committed Jul 12, 2024
2 parents bd0969f + 7608c30 commit 80aa413
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/_snippets/button-story-baseline.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const meta: Meta<Button> = {
export default meta;
type Story = StoryObj<Button>;

//👇 Throws a type error it the args don't match the component props
//👇 Throws a type error if the args don't match the component props
export const Primary: Story = {
args: {
primary: true,
Expand All @@ -31,7 +31,7 @@ const meta: Meta<typeof Button> = {
export default meta;
type Story = StoryObj<typeof Button>;

//👇 Throws a type error it the args don't match the component props
//👇 Throws a type error if the args don't match the component props
export const Primary: Story = {
args: {
primary: true,
Expand All @@ -49,11 +49,10 @@ const meta: Meta = {
export default meta;
type Story = StoryObj;

//👇 Throws a type error it the args don't match the component props
//👇 Throws a type error if the args don't match the component props
export const Primary: Story = {
args: {
primary: true,
},
};
```

0 comments on commit 80aa413

Please sign in to comment.