Skip to content

Commit

Permalink
Merge pull request #16457 from facugaich/args-docs-patch
Browse files Browse the repository at this point in the history
Docs: Fix React TS types in Args section snippets
  • Loading branch information
jonniebigodes committed Oct 28, 2021
2 parents 945148a + 64b4e9f commit d8ba74c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/snippets/react/button-story-with-args.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';

import { Story, Meta } from '@storybook/react';

import { Button } from './Button';
import { Button, ButtonProps } from './Button';

export default {
component: Button,
Expand All @@ -21,4 +21,4 @@ Primary.args = {
primary: true,
label: 'Button',
};
```
```
6 changes: 3 additions & 3 deletions docs/snippets/react/page-story-slots.ts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import React from 'react';

import { Story, Meta } from '@storybook/react';

import Page from './Page';
import { Page, PageProps } from './Page';

export default {
component: Page,
title: 'Page',
} as Meta;

const Template: Story<Page> = (args) => (
const Template: Story<PageProps> = (args) => (
<Page {...args}>
<footer>{args.footer}</footer
<footer>{args.footer}</footer>
</Page>
);

Expand Down

0 comments on commit d8ba74c

Please sign in to comment.