|
1 | 1 | import * as React from "react"; |
2 | 2 | import { |
3 | | - Command, |
4 | | - GenerateMarkdownPreview, CommandGroup, GetIcon |
| 3 | + Command, CommandGroup, |
| 4 | + GenerateMarkdownPreview, GetIcon |
5 | 5 | } from "../types"; |
6 | 6 | import {getDefaultCommands} from "../commands"; |
7 | | -import {TextArea, MdePreview, MdeToolbar, MdeFontAwesomeIcon} from "."; |
| 7 | +import { MdePreview, MdeToolbar, TextArea} from "."; |
8 | 8 | import {extractCommandMap} from "../util/CommandUtils"; |
9 | 9 | import {Tab} from "../types/Tab"; |
10 | 10 | import {L18n} from ".."; |
11 | 11 | import {enL18n} from "../l18n/react-mde.en"; |
12 | 12 | import {CommandOrchestrator, TextAreaCommandOrchestrator} from "../commandOrchestrator"; |
13 | 13 | import {classNames} from "../util/ClassNames"; |
| 14 | +import {SvgIcon} from "../icons/SvgIcon"; |
14 | 15 |
|
15 | 16 | export interface ReactMdeProps { |
16 | 17 | value: string; |
@@ -52,7 +53,7 @@ export class ReactMde extends React.Component<ReactMdeProps, ReactMdeState> { |
52 | 53 |
|
53 | 54 | static defaultProps: Partial<ReactMdeProps> = { |
54 | 55 | commands: getDefaultCommands(), |
55 | | - getIconFromProvider: name => <MdeFontAwesomeIcon icon={name}/>, |
| 56 | + getIconFromProvider: name => <SvgIcon icon={name}/>, |
56 | 57 | emptyPreviewHtml: "<p> </p>", |
57 | 58 | readOnly: false, |
58 | 59 | l18n: enL18n, |
|
0 commit comments