Skip to content

Commit

Permalink
Some minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bkonkle committed Oct 2, 2020
1 parent a65992e commit f4879fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 1 addition & 9 deletions src/components/Editor/index.js
Expand Up @@ -58,15 +58,7 @@ class CodeEditor extends Component {
);

render() {
// eslint-disable-next-line no-unused-vars
const {
style,
code: _code,
onChange,
language,
theme,
...rest
} = this.props;
const { style, theme, ...rest } = this.props;
const { code } = this.state;

const baseTheme =
Expand Down
5 changes: 5 additions & 0 deletions src/components/Live/LivePreview.js
@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import LiveContext from './LiveContext';

function LivePreview({ Component, ...rest }) {
Expand All @@ -11,6 +12,10 @@ function LivePreview({ Component, ...rest }) {
);
}

LivePreview.propTypes = {
Component: PropTypes.node
};

LivePreview.defaultProps = {
Component: 'div'
};
Expand Down

0 comments on commit f4879fb

Please sign in to comment.