-
Notifications
You must be signed in to change notification settings - Fork 22
chore(Share): update storybook #1322
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
Conversation
|
Preview is ready. |
|
Playwright Test Component is ready. |
| title: 'Blocks/Share', | ||
| argTypes: { | ||
| title: { | ||
| control: {type: '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.
Let's make sure that these controls are pulled up automatically. If they did not appear automatically, it is possible that this is due to Pick<>, different names of the file and the component in the file.
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.
Deleted title from argTypes, but left for items because it looks better with control type: 'check'
|
|
||
| const DefaultTemplate: StoryFn<ShareBLockModel> = (args) => ( | ||
| <PageConstructor content={{blocks: [args]}} /> | ||
| <PageConstructor content={{blocks: [blockTransform(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.
Let's remove the PageConstructor here and just make a Share component. Most likely, this will fix the problem with the controls.
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.
Removed PageConstructor
f21b025 to
c092e24
Compare
c092e24 to
e1965bc
Compare
Updated Share block story for better storybook ux