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

pull/21009/head
HyaCinth 9 months ago committed by GitHub
parent 72a6cde828
commit 21c2de2d7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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