mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 05:31:49 +08:00
use same param key as backgrounds addon (#7437)
use same param key as backgrounds addon
This commit is contained in:
commit
65b608c4db
@ -56,7 +56,7 @@ export default class BackgroundPanel extends Component {
|
|||||||
render() {
|
render() {
|
||||||
const { active, api } = this.props;
|
const { active, api } = this.props;
|
||||||
|
|
||||||
if (!active) {
|
if (!active || !this.state) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
export const PARAM_KEY = 'background';
|
export const PARAM_KEY = 'backgrounds';
|
||||||
export const ADDON_ID = 'storybook-addon-background';
|
export const ADDON_ID = 'storybook-addon-background';
|
||||||
export const PANEL_ID = `${ADDON_ID}/background-panel`;
|
export const PANEL_ID = `${ADDON_ID}/background-panel`;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user