Skip to content

Commit eafc3fd

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ export interface CodeEditorProps extends Omit<HTMLProps<HTMLDivElement>, 'onChan
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)