Skip to content

Commit

Permalink
Fixed 'react-ace' problem (#3684)
Browse files Browse the repository at this point in the history
* Fixed 'react-ace' problem

* Update code_editor.js
  • Loading branch information
anishagg17 committed Jul 2, 2020
1 parent 62b5d94 commit 0fbfadb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src-docs/src/views/code_editor/code_editor.js
@@ -1,13 +1,11 @@
import React, { useState } from 'react';

import 'react-ace'; // this import can be omitted from your project, but is required for our Code Sandbox demo link to work
import { EuiCodeEditor } from '../../../../src/components';
import 'brace/theme/github';
import 'brace/mode/javascript';
import 'brace/snippets/javascript';
import 'brace/ext/language_tools';

import { EuiCodeEditor } from '../../../../src/components';

export default () => {
const [value, updateValue] = useState('');

Expand Down

0 comments on commit 0fbfadb

Please sign in to comment.