Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Add missing prop-type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Dec 6, 2017
1 parent 91e241d commit dd0c59a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api-explorer-ui/src/block-types/Code.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ BlockCode.propTypes = {
opts: PropTypes.shape({
label: PropTypes.string,
}),
dark: PropTypes.bool,
};

BlockCode.defaultProps = {
block: { data: {} },
opts: {},
dark: false,
};

module.exports = BlockCode;

0 comments on commit dd0c59a

Please sign in to comment.