-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wip: Add storybook #4325
wip: Add storybook #4325
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/io53wih62 |
Codecov Report
@@ Coverage Diff @@
## development #4325 +/- ##
============================================
Coverage 22.96% 22.96%
============================================
Files 478 478
Lines 5024 5024
Branches 8 8
============================================
Hits 1154 1154
Misses 3869 3869
Partials 1 1 Continue to review full report at Codecov.
|
f65fd6c
to
937aa2f
Compare
Here is an overview of what got changed by this pull request: Issues
======
- Added 13
Complexity increasing per file
==============================
- stories/1-Button.stories.js 1
See the complete overview on Codacy |
export default { | ||
title: 'Button', | ||
argTypes: { | ||
children: { control: 'text' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Unexpected trailing comma.
}, | ||
}; | ||
|
||
const Template = (args) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Unexpected parentheses around single function argument.
|
||
export const Emoji = Template.bind({}); | ||
Emoji.args = { | ||
children: '😀 😎 👍 💯', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Unexpected trailing comma.
|
||
const Template = (args) => ({ | ||
template: hbs`<button {{action "onClick"}}>{{children}}</button>`, | ||
context: args, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Unexpected trailing comma.
import { linkTo } from '@storybook/addon-links'; | ||
|
||
export default { | ||
title: 'Button', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Missing space after key 'title'.
|
||
export const Text = Template.bind({}); | ||
Text.args = { | ||
children: 'Button', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Missing space after key 'children'.
Text.args = { | ||
children: 'Button', | ||
actions: { | ||
onClick: action('onClick'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Unexpected trailing comma.
}; | ||
|
||
const Template = (args) => ({ | ||
template: hbs`<button {{action "onClick"}}>{{children}}</button>`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Missing space after key 'template'.
title: 'Button', | ||
argTypes: { | ||
children: { control: 'text' }, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Unexpected trailing comma.
export const Text = Template.bind({}); | ||
Text.args = { | ||
children: 'Button', | ||
actions: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Missing space after key 'actions'.
|
||
const Template = (args) => ({ | ||
template: hbs`<button {{action "onClick"}}>{{children}}</button>`, | ||
context: args, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Missing space after key 'context'.
|
||
export default { | ||
title: 'Button', | ||
argTypes: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Missing space after key 'argTypes'.
`, | ||
context: { | ||
actions: { | ||
onClick: linkTo('example-introduction--page'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codacy found an issue: Unexpected trailing comma.
No description provided.