Remove hardcoded language ID

This commit is contained in:
Nilay Majorwar
2022-01-22 22:48:55 +05:30
parent ee569ada7f
commit 3f2e13af74
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ const CodeEditorComponent = (props: Props, ref: React.Ref<CodeEditorRef>) => {
return (
<Editor
theme={isDark ? "ep-dark" : "ep-light"}
defaultLanguage="brainfuck"
defaultLanguage={props.languageId}
defaultValue={props.defaultValue}
beforeMount={(monaco) => {
monaco.editor.defineTheme("ep-dark", darkTheme as any);