Skip to content

Commit f660197

Browse files
committed
rename function to display toolbar (and preview in case of markdown)
1 parent 8e097e1 commit f660197

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/extensions/codemirror/CodeMirror.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ export const CodeEditor = ({
378378

379379
const hasToolbarSupport = mode && ModeToolbarSupport.indexOf(mode) > -1 && useToolbar;
380380

381-
const includeToolbar = (mode?: SupportedCodeEditorModes): JSX.Element => {
381+
const editorToolbar = (mode?: SupportedCodeEditorModes): JSX.Element => {
382382
switch (mode) {
383383
case "markdown":
384384
return (
@@ -418,7 +418,7 @@ export const CodeEditor = ({
418418
}
419419
{...otherCodeEditorProps}
420420
>
421-
{hasToolbarSupport && includeToolbar(mode)}
421+
{hasToolbarSupport && editorToolbar(mode)}
422422
</div>
423423
);
424424
};

0 commit comments

Comments
 (0)