Skip to content

Commit f9d5afc

Browse files
committed
update with feedback
1 parent c89a183 commit f9d5afc

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
stories: ['../stories/**/*.stories.@(ts|tsx)'],
3-
addons: ['@storybook/addon-essentials', '@storybook/addon-links'],
2+
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'],
3+
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
44
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const parameters = {
2+
actions: { argTypesRegex: '^on.*' },
3+
};

templates/react-with-storybook/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ This is the folder structure we set up for you:
7171
/test
7272
blah.test.tsx # EDIT THIS
7373
/stories
74-
Thing.stories.tsx
74+
Thing.stories.tsx #EDIT THIS
7575
/.storybook
7676
main.js
7777
.gitignore

templates/react-with-storybook/stories/Thing.stories.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { Meta, Story } from '@storybook/react';
33
import { Thing, Props } from '../src';
44

5-
export default {
5+
const meta: Meta = {
66
title: 'Welcome',
77
component: Thing,
88
argTypes: {
@@ -15,7 +15,9 @@ export default {
1515
parameters: {
1616
controls: { expanded: true },
1717
},
18-
} as Meta;
18+
};
19+
20+
export default meta;
1921

2022
const Template: Story<Props> = args => <Thing {...args} />;
2123

0 commit comments

Comments
 (0)