-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Storybook components #743
Storybook components #743
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
@@ -36,6 +36,13 @@ export const uppercase = props => | |||
} | |||
: null | |||
|
|||
export const capitalize = props => |
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.
🤔 Not your work but this structure of adding styles seems a bit messy and not super easy to read to me.
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.
Yes some components needs refactoring, especially Text
I've addressed the issue here #727
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.
@drydenwilliams
Check this commit and see if this looks a bit better (would look nicer without lint breaking lines, but maybe still ok)
f107206
to
8623ee0
Compare
@BenGamma Please take a look, I managed to include a few more components, although not a comprehensive list yet. There are a few commits that touch some of the component's code, so please check those too. |
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.
Storybook works like a charm thanks !
But when I'm running yarn start
I have a few errors on compile :
- First with a
onClick
props to change toOnClick
, which is quite straightforward. - The second is about typings (see screenshot or run
yarn start
to reproduce). Can you resolve before I merge ? Thanks
@BenGamma Yes, will fix it. But question about the
|
Yes you can lowercase it. It's legacy code, probably a mistake by the time 😇 |
Adding stories for other components on Storybook. Covered in this PR: