From 71a99cfc54113cb631affa3e12671586bf4fbe1d Mon Sep 17 00:00:00 2001 From: logonoff Date: Wed, 15 Oct 2025 16:40:39 -0400 Subject: [PATCH] fix(CodeEditorControl): make icon prop optional Closes #12065. This allows the usage of `isSettings` without a workaround --- .../src/components/CodeEditor/CodeEditorControl.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-code-editor/src/components/CodeEditor/CodeEditorControl.tsx b/packages/react-code-editor/src/components/CodeEditor/CodeEditorControl.tsx index aa9f716d0b3..aea9def50bf 100644 --- a/packages/react-code-editor/src/components/CodeEditor/CodeEditorControl.tsx +++ b/packages/react-code-editor/src/components/CodeEditor/CodeEditorControl.tsx @@ -13,7 +13,7 @@ export interface CodeEditorControlProps extends Omit { /** Additional classes added to the code editor control. */ className?: string; /** Icon rendered inside the code editor control. */ - icon: React.ReactNode; + icon?: React.ReactNode; /** Event handler for the click of the button */ onClick: (code: string, event?: any) => void; /** Flag indicating that the button is visible above the code editor. */