We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e097e1 commit f660197Copy full SHA for f660197
1 file changed
src/extensions/codemirror/CodeMirror.tsx
@@ -378,7 +378,7 @@ export const CodeEditor = ({
378
379
const hasToolbarSupport = mode && ModeToolbarSupport.indexOf(mode) > -1 && useToolbar;
380
381
- const includeToolbar = (mode?: SupportedCodeEditorModes): JSX.Element => {
+ const editorToolbar = (mode?: SupportedCodeEditorModes): JSX.Element => {
382
switch (mode) {
383
case "markdown":
384
return (
@@ -418,7 +418,7 @@ export const CodeEditor = ({
418
}
419
{...otherCodeEditorProps}
420
>
421
- {hasToolbarSupport && includeToolbar(mode)}
+ {hasToolbarSupport && editorToolbar(mode)}
422
</div>
423
);
424
};
0 commit comments