diff options
| author | jackyzha0 <[email protected]> | 2021-03-05 17:43:16 -0800 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2021-03-05 17:43:16 -0800 |
| commit | d99b8f3f8bea25a406c448d0fd3cd38e7c3f136f (patch) | |
| tree | 6493e0c9813ac4591963e29b0e00a0edb026f2bc /frontend/src/components/Editor.js | |
| parent | title refactor (diff) | |
| download | ctrl-v-d99b8f3f8bea25a406c448d0fd3cd38e7c3f136f.tar.xz ctrl-v-d99b8f3f8bea25a406c448d0fd3cd38e7c3f136f.zip | |
remove extra langs
Diffstat (limited to 'frontend/src/components/Editor.js')
| -rw-r--r-- | frontend/src/components/Editor.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/frontend/src/components/Editor.js b/frontend/src/components/Editor.js deleted file mode 100644 index 83d8464..0000000 --- a/frontend/src/components/Editor.js +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react'; -import Editor from 'react-simple-code-editor'; -import { highlight, languages } from 'prismjs/components/prism-core'; -import 'prismjs/components/prism-clike'; -import 'prismjs/components/prism-javascript'; - -const code = `function add(a, b) { - return a + b; -} -`; - -class App extends React.Component { - state = { code }; - - render() { - return ( - <Editor - value={this.state.code} - onValueChange={code => this.setState({ code })} - highlight={code => highlight(code, languages.js)} - padding={10} - style={{ - fontFamily: '"JetBrains Mono", monospace', - fontSize: 12, - }} - /> - ); - } -}
\ No newline at end of file |