Skip to content

Commit bfacf43

Browse files
committed
fix(CodeEditor): do not include extra div if headerMainContent is unset
1 parent 04daac6 commit bfacf43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-code-editor/src/components/CodeEditor/CodeEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ class CodeEditor extends React.Component<CodeEditorProps, CodeEditorState> {
612612
{customControls && customControls}
613613
</CodeEditorContext.Provider>
614614
</div>
615-
{<div className={css(styles.codeEditorHeaderMain)}>{headerMainContent}</div>}
615+
{headerMainContent && <div className={css(styles.codeEditorHeaderMain)}>{headerMainContent}</div>}
616616
{!!shortcutsPopoverProps.bodyContent && (
617617
<div className={`${styles.codeEditor}__keyboard-shortcuts`}>
618618
<Popover {...shortcutsPopoverProps}>

0 commit comments

Comments
 (0)