Set Storybook options
parent
a69125ce40
commit
493efad203
|
@ -1,2 +1,3 @@
|
|||
import '@storybook/addon-actions/register';
|
||||
import '@storybook/addon-knobs/register';
|
||||
import '@storybook/addon-actions/register';
|
||||
import '@storybook/addon-options/register';
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
import { configure } from '@storybook/react';
|
||||
import { setOptions } from '@storybook/addon-options';
|
||||
|
||||
function loadStories() {
|
||||
require('../stories');
|
||||
}
|
||||
setOptions({
|
||||
name: 'Contribute on GitHub',
|
||||
url: 'https://github.com/missive/emoji-mart',
|
||||
downPanelInRight: true,
|
||||
sidebarAnimations: false,
|
||||
})
|
||||
|
||||
configure(loadStories, module);
|
||||
configure(() => require('../stories'), module);
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
"@storybook/addon-actions": "^3.2.11",
|
||||
"@storybook/addon-knobs": "^3.2.10",
|
||||
"@storybook/addon-links": "^3.2.10",
|
||||
"@storybook/addon-options": "3.2.10",
|
||||
"@storybook/react": "^3.2.11",
|
||||
"babel-cli": "^6.26.0",
|
||||
"babel-core": "6.7.2",
|
||||
|
|
|
@ -40,6 +40,12 @@
|
|||
dependencies:
|
||||
"@storybook/addons" "^3.2.10"
|
||||
|
||||
"@storybook/addon-options@3.2.10":
|
||||
version "3.2.10"
|
||||
resolved "https://registry.yarnpkg.com/@storybook/addon-options/-/addon-options-3.2.10.tgz#b8220876493babcbff4a861836aea580cf706c20"
|
||||
dependencies:
|
||||
"@storybook/addons" "^3.2.10"
|
||||
|
||||
"@storybook/addons@^3.2.10":
|
||||
version "3.2.10"
|
||||
resolved "https://registry.yarnpkg.com/@storybook/addons/-/addons-3.2.10.tgz#dd71654674a417f62dcc91009c61e47dffdcac03"
|
||||
|
|
Loading…
Reference in New Issue