Skip to content

Commit bbb502a

Browse files
authored
fix(CodeEditorControl): make icon prop optional (#12068)
This allows the usage of isSettings without a workaround. Closes #12065.
1 parent c0d8839 commit bbb502a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface CodeEditorControlProps extends Omit<ButtonProps, 'onClick'> {
1313
/** Additional classes added to the code editor control. */
1414
className?: string;
1515
/** Icon rendered inside the code editor control. */
16-
icon: React.ReactNode;
16+
icon?: React.ReactNode;
1717
/** Event handler for the click of the button */
1818
onClick: (code: string, event?: any) => void;
1919
/** Flag indicating that the button is visible above the code editor. */

0 commit comments

Comments
 (0)