Skip to content

Commit

Permalink
fix(storybook): fix Email story issues
Browse files Browse the repository at this point in the history
Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
  • Loading branch information
niloysikdar committed Jun 19, 2022
1 parent a86e62b commit 20b17f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx|mdx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
Expand Down
4 changes: 2 additions & 2 deletions src/components/Email/Email.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export default {
//“template” of how args map to rendering
const Template: ComponentStory<typeof Email> = (args) => <Email {...args} />;

export const MyEmail = Template.bind({});
export const Default = Template.bind({});

MyEmail.args = {
Default.args = {
children: <h2>Hello world</h2>,
};
2 changes: 1 addition & 1 deletion src/components/Email/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Email } from './Email';
export { Email, EmailProps } from './Email';
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { Email } from './components/Email';
export { Email, EmailProps } from './components/Email';

0 comments on commit 20b17f2

Please sign in to comment.