fix(code-editor): optimize the loading style of the `CodeEditor` component in dark mode (#21116)

pull/21120/head
zhujiruo 11 months ago
parent 0dcacdf83d
commit 1d1604417c

@ -140,6 +140,7 @@ const CodeEditor: FC<Props> = ({
language={languageMap[language] || 'javascript'}
theme={isMounted ? theme : 'default-theme'} // sometimes not load the default theme
value={outPutValue}
loading={<span className='text-text-primary'>Loading...</span>}
onChange={handleEditorChange}
// https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.IEditorOptions.html
options={{

Loading…
Cancel
Save