Skip to content

Commit

Permalink
fix(addon-info.propTypes): temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stupidism committed Jun 17, 2017
1 parent c9632ea commit bf954db
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import PropTypes from 'prop-types';
import { configure, setAddon, addDecorator } from '@storybook/react';
import infoAddon, { setDefaults } from '@storybook/addon-info';
import PropVal from '@storybook/addon-info/dist/components/PropVal';
import { setOptions } from '@storybook/addon-options';
import { withKnobs } from '@storybook/addon-knobs';

Expand All @@ -26,6 +28,13 @@ setDefaults({
maxPropStringLength: 100,
});
setAddon(infoAddon);
// temp fix PropVal.propTypes
PropVal.propTypes = {
...PropVal.propTypes,
maxPropObjectKeys: PropTypes.number,
maxPropArrayLength: PropTypes.number,
maxPropStringLength: PropTypes.number,
};

// addon-knobs
// Add the `withKnobs` decorator to add knobs support to your stories.
Expand Down

0 comments on commit bf954db

Please sign in to comment.