Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored and github-actions[bot] committed Jul 19, 2021
1 parent 1277c0a commit a097e96
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
9 changes: 2 additions & 7 deletions src/diff.tsx
Expand Up @@ -142,13 +142,8 @@ class MonacoDiffEditor extends React.Component<MonacoDiffEditorProps> {
initMonaco() {
const value =
this.props.value != null ? this.props.value : this.props.defaultValue;
const {
original,
theme,
options,
overrideServices,
className,
} = this.props;
const { original, theme, options, overrideServices, className } =
this.props;
if (this.containerElement) {
// Before initializing monaco editor
this.editorWillMount();
Expand Down
11 changes: 2 additions & 9 deletions src/editor.tsx
Expand Up @@ -53,15 +53,8 @@ class MonacoEditor extends React.Component<MonacoEditorProps> {
}

componentDidUpdate(prevProps: MonacoEditorProps) {
const {
value,
language,
theme,
height,
options,
width,
className,
} = this.props;
const { value, language, theme, height, options, width, className } =
this.props;

const { editor } = this;
const model = editor.getModel();
Expand Down

0 comments on commit a097e96

Please sign in to comment.