Skip to content

Commit f4879fb

Browse files
committed
Some minor cleanup
1 parent a65992e commit f4879fb

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/components/Editor/index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,7 @@ class CodeEditor extends Component {
5858
);
5959

6060
render() {
61-
// eslint-disable-next-line no-unused-vars
62-
const {
63-
style,
64-
code: _code,
65-
onChange,
66-
language,
67-
theme,
68-
...rest
69-
} = this.props;
61+
const { style, theme, ...rest } = this.props;
7062
const { code } = this.state;
7163

7264
const baseTheme =

src/components/Live/LivePreview.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import LiveContext from './LiveContext';
34

45
function LivePreview({ Component, ...rest }) {
@@ -11,6 +12,10 @@ function LivePreview({ Component, ...rest }) {
1112
);
1213
}
1314

15+
LivePreview.propTypes = {
16+
Component: PropTypes.node
17+
};
18+
1419
LivePreview.defaultProps = {
1520
Component: 'div'
1621
};

0 commit comments

Comments
 (0)