0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

fix(console): resolve js warning reported in code editor component

This commit is contained in:
Charles Zhao 2022-05-11 21:29:16 +08:00
parent 45efcd2133
commit c5d14887d4
No known key found for this signature in database
GPG key ID: 4858774754C92DF2

View file

@ -29,10 +29,9 @@ const CodeEditor = ({ language, isReadonly = false, value = '', onChange }: Prop
data-gramm="false"
readOnly={isReadonly}
spellCheck="false"
value={value}
onChange={handleChange}
>
{value}
</textarea>
/>
<SyntaxHighlighter
customStyle={{
background: 'transparent',