Skip to content

Commit

Permalink
adding logs on storybook for button click
Browse files Browse the repository at this point in the history
  • Loading branch information
brenocastelo committed Dec 14, 2022
1 parent 6ee2ec0 commit f51af9c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/docs/src/stories/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ export default {
args: {
children: 'Send',
},
argTypes: {
onClick: {
action: 'click',
},
},
} as Meta<ButtonProps>;

export const Primary: StoryObj<ButtonProps> = {};
Expand Down
12 changes: 12 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://turbo.build/schema.json",
"pipeline": {
"dev": {
"cache": false
},
"build": {
"outputs": ["dist/**", "storybook-static/**"],
"dependsOn": ["^build"]
}
}
}

0 comments on commit f51af9c

Please sign in to comment.