Skip to content

Commit 6567454

Browse files
committed
fix: theme flicker on code editor
1 parent 06fd7e7 commit 6567454

File tree

1 file changed

+1
-0
lines changed
  • src/admin/components/elements/CodeEditor

1 file changed

+1
-0
lines changed

src/admin/components/elements/CodeEditor/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const CodeEditor: React.FC<Props> = (props) => {
2222
<Editor
2323
height="35vh"
2424
className={classes}
25+
theme={theme === 'dark' ? 'vs-dark' : 'vs'}
2526
options={
2627
{
2728
detectIndentation: true,

0 commit comments

Comments
 (0)