-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addons: Disable option for addon tab (#6923)
feature request: disable option for addon tab
- Loading branch information
Showing
26 changed files
with
317 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import React from 'react'; | ||
import addons from '@storybook/addons'; | ||
import ActionLogger from './containers/ActionLogger'; | ||
import { ADDON_ID, PANEL_ID } from '.'; | ||
import { ADDON_ID, PANEL_ID, PARAM_KEY } from './constants'; | ||
|
||
export function register() { | ||
addons.register(ADDON_ID, api => { | ||
addons.addPanel(PANEL_ID, { | ||
title: 'Actions', | ||
render: ({ active, key }) => <ActionLogger key={key} api={api} active={active} />, | ||
paramKey: PARAM_KEY, | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import React from 'react'; | ||
import addons from '@storybook/addons'; | ||
import { ADDON_ID, PANEL_ID } from './shared'; | ||
import { ADDON_ID, PANEL_ID, PARAM_KEY } from './shared'; | ||
|
||
import Panel from './components/Panel'; | ||
|
||
addons.register(ADDON_ID, api => { | ||
addons.addPanel(PANEL_ID, { | ||
title: 'tests', | ||
render: ({ active, key }) => <Panel key={key} api={api} active={active} />, | ||
paramKey: PARAM_KEY, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import React from 'react'; | ||
import addons from '@storybook/addons'; | ||
import Panel from './components/Panel'; | ||
import { ADDON_ID, PANEL_ID } from './shared'; | ||
import { ADDON_ID, PANEL_ID, PARAM_KEY } from './shared'; | ||
|
||
addons.register(ADDON_ID, api => { | ||
addons.addPanel(PANEL_ID, { | ||
title: 'Knobs', | ||
// eslint-disable-next-line react/prop-types | ||
render: ({ active, key }) => <Panel api={api} key={key} active={active} />, | ||
paramKey: PARAM_KEY, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import React from 'react'; | ||
import addons from '@storybook/addons'; | ||
import { ADDON_ID, PANEL_ID } from '@storybook/addon-actions'; | ||
import { ADDON_ID, PANEL_ID, PARAM_KEY } from '@storybook/addon-actions'; | ||
import ActionLogger from './containers/ActionLogger'; | ||
|
||
export function register() { | ||
addons.register(ADDON_ID, () => { | ||
addons.addPanel(PANEL_ID, { | ||
title: 'Actions', | ||
render: ({ active, key }) => <ActionLogger key={key} active={active} />, | ||
paramKey: PARAM_KEY, | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
b9d2ba2
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.
Successfully aliased the URL https://monorepo-98pmc8mo7.now.sh to the following aliases.