mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-19 05:02:40 +08:00
Make StorybookControls proptypes as non-required
This commit is contained in:
parent
09459301cb
commit
b95d600362
@ -26,7 +26,7 @@ const ActionLogger = ({actionLog}) => (
|
||||
);
|
||||
|
||||
ActionLogger.propTypes = {
|
||||
actionLog: React.PropTypes.element.isRequired,
|
||||
actionLog: React.PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
export default ActionLogger;
|
||||
|
10
src/client/ui/controls.js
vendored
10
src/client/ui/controls.js
vendored
@ -121,9 +121,9 @@ export default class StorybookControls extends React.Component {
|
||||
}
|
||||
|
||||
StorybookControls.propTypes = {
|
||||
storybook: React.PropTypes.object.isRequired,
|
||||
selectedKind: React.PropTypes.string.isRequired,
|
||||
selectedStory: React.PropTypes.string.isRequired,
|
||||
onKind: React.PropTypes.func.isRequired,
|
||||
onStory: React.PropTypes.func.isRequired,
|
||||
storybook: React.PropTypes.object,
|
||||
selectedKind: React.PropTypes.string,
|
||||
selectedStory: React.PropTypes.string,
|
||||
onKind: React.PropTypes.func,
|
||||
onStory: React.PropTypes.func,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user