Skip to content

Commit

Permalink
update with feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterBrown committed Aug 21, 2020
1 parent c89a183 commit 9a719ab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions templates/react-with-storybook/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
stories: ['../stories/**/*.stories.@(ts|tsx)'],
addons: ['@storybook/addon-essentials', '@storybook/addon-links'],
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
};
2 changes: 1 addition & 1 deletion templates/react-with-storybook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This is the folder structure we set up for you:
/test
blah.test.tsx # EDIT THIS
/stories
Thing.stories.tsx
Thing.stories.tsx #EDIT THIS
/.storybook
main.js
.gitignore
Expand Down
6 changes: 4 additions & 2 deletions templates/react-with-storybook/stories/Thing.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Meta, Story } from '@storybook/react';
import { Thing, Props } from '../src';

export default {
const meta: Meta = {
title: 'Welcome',
component: Thing,
argTypes: {
Expand All @@ -15,7 +15,9 @@ export default {
parameters: {
controls: { expanded: true },
},
} as Meta;
};

export default meta;

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

Expand Down

0 comments on commit 9a719ab

Please sign in to comment.