Skip to content

Commit c875446

Browse files
committed
fix(CodeEditor): make all props optional
since the needed props are already set by `defaultProps`
1 parent 49c37d0 commit c875446

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,17 +192,17 @@ export interface CodeEditorProps extends Omit<HTMLProps<HTMLDivElement>, 'onChan
192192
/** Refer to Monaco interface {monaco.editor.IEditorOverrideServices}. */
193193
overrideServices?: editor.IEditorOverrideServices;
194194
/** Text to show in the button to open the shortcut popover. */
195-
shortcutsPopoverButtonText: string;
195+
shortcutsPopoverButtonText?: string;
196196
/** Properties for the shortcut popover. */
197197
shortcutsPopoverProps?: PopoverProps;
198198
/** Flag to show the editor. */
199199
showEditor?: boolean;
200200
/** The delay before tooltip fades after code copied. */
201-
toolTipCopyExitDelay: number;
201+
toolTipCopyExitDelay?: number;
202202
/** The entry and exit delay for all tooltips. */
203-
toolTipDelay: number;
203+
toolTipDelay?: number;
204204
/** The max width of the tooltips on all button. */
205-
toolTipMaxWidth: string;
205+
toolTipMaxWidth?: string;
206206
/** The position of tooltips on all buttons. */
207207
toolTipPosition?:
208208
| TooltipPosition

0 commit comments

Comments
 (0)