You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a proposal to consolidate all those declarations into a single place to remove code duplication and to allow a generic string as a possible viewMode value so an addon can register any type of Tab.
The text was updated successfully, but these errors were encountered:
Adding a new Tab type of storybook addon generates an error:
Warning: Failed prop type: Invalid prop
viewModeof value
depssupplied to
Preview, expected one of ["story","info","docs","settings"]
example usage:
https://github.com/atanasster/storybook-addon-deps/blob/master/src/register.tsx
Currently
viewMode
prop for addons is declared in several places:storybook/lib/ui/src/app.js
Line 77 in d7c3653
storybook/lib/ui/src/components/layout/container.js
Line 556 in d7c3653
storybook/lib/ui/src/components/layout/desktop.js
Line 74 in d7c3653
storybook/lib/ui/src/components/layout/mobile.js
Line 204 in d7c3653
storybook/lib/ui/src/components/preview/preview.js
Line 316 in d7c3653
This is a proposal to consolidate all those declarations into a single place to remove code duplication and to allow a generic string as a possible viewMode value so an addon can register any type of Tab.
The text was updated successfully, but these errors were encountered: