-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Move addon-info
into addons panel
#1501
Changes from 38 commits
53e10dc
1920cf4
3eabb5d
b003486
ff4776c
82632db
1c3d9a2
9137eee
5fe8b85
9b3f2c5
e3ff456
5d7c2d2
a494903
a21ee5a
e956ae8
fbf0406
fc6a11e
4384397
0e77b8a
eda4bfc
79719c2
470797f
8a8460c
01ea321
63e3026
33efb58
6404f20
bd33a63
68f73c3
e8c6db4
5407663
edc04fe
378067b
6e90ede
800d014
51e67d7
a9e4b4b
9f89bc4
01c6b2a
49e5414
5a47cb5
c8a9d0f
7a2812a
079bae9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ | ||
|
||
import '@storybook/addon-info/register'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please let's concentrate to make cra-kitchen-sink THE place where we all add working examples. Adding a dev-setup to all packages is just going to get so hard to manage over time. Do you agree? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please, see my comment below |
||
import '@storybook/addon-knobs/register'; | ||
import '@storybook/addon-actions/register'; | ||
import '@storybook/addon-links/register'; | ||
import '@storybook/addon-options/register'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
import React from 'react'; | ||
import { configure, setAddon, addDecorator } from '@storybook/react'; | ||
import InfoAddon from '../src/'; | ||
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ | ||
|
||
addDecorator((story) => ( | ||
<div style={{padding: 20}}> | ||
{story()} | ||
</div> | ||
)); | ||
import { configure, setAddon } from '@storybook/react'; | ||
import { withInfo, setInfoOptions } from '@storybook/addon-info'; | ||
import { setOptions } from '@storybook/addon-options'; | ||
|
||
setAddon(InfoAddon); | ||
setOptions({ | ||
downPanelInRight: true, | ||
}) | ||
|
||
configure(function () { | ||
require('../example/story'); | ||
}, module); | ||
setAddon({ | ||
summary(info) { | ||
return this.addDecorator(story => { | ||
setInfoOptions(info); | ||
return story(); | ||
}) | ||
} | ||
}); | ||
|
||
function loadStories() { | ||
require('../src/components/stories'); | ||
} | ||
|
||
configure(loadStories, module); |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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.
Please remove those disables, they shouldn't be needed and CLI doesn't add them anymore