We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 251ef1e commit 12c4345Copy full SHA for 12c4345
1 file changed
src/components/CodeExample/CodeExample.js
@@ -1,4 +1,6 @@
1
import React, {Component} from 'react';
2
+import PropTypes from 'prop-types';
3
+
4
import {colors, media} from 'theme';
5
import CodeEditor from '../CodeEditor/CodeEditor';
6
@@ -57,4 +59,10 @@ class CodeExample extends Component {
57
59
}
58
60
61
62
+CodeExample.propTypes = {
63
+ children: PropTypes.node,
64
+ code: PropTypes.string.isRequired,
65
+ loaded: PropTypes.bool.isRequired
66
+};
67
68
export default CodeExample;
0 commit comments