bugfix use of active property

This commit is contained in:
Nils Norman Haukås 2018-11-14 11:22:47 +01:00
parent 3ebb222eae
commit f38937b3ad
No known key found for this signature in database
GPG key ID: BB8DD87F83E1359E
3 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"name": "react-storybook-addon-static-markup",
"version": "0.1.1",
"version": "0.1.2",
"description": "",
"main": "index.js",
"scripts": {

View file

@ -130,8 +130,9 @@ _addons2.default.register('evgenykochetkov/static-markup', function (api) {
// Also need to set a unique name to the panel.
_addons2.default.addPanel('evgenykochetkov/static-markup/panel', {
title: 'Static Markup',
render: function render() {
return _react2.default.createElement(StaticMarkup, { channel: _addons2.default.getChannel(), api: api });
render: function render(_ref2) {
var active = _ref2.active;
return _react2.default.createElement(StaticMarkup, { channel: _addons2.default.getChannel(), api: api, active: active });
}
});
});

View file

@ -68,8 +68,8 @@ addons.register('evgenykochetkov/static-markup', (api) => {
// Also need to set a unique name to the panel.
addons.addPanel('evgenykochetkov/static-markup/panel', {
title: 'Static Markup',
render: () => (
<StaticMarkup channel={addons.getChannel()} api={api}/>
render: ({active}) => (
<StaticMarkup channel={addons.getChannel()} api={api} active={active}/>
),
})
})