From c9af88e72177e74186662f9514da306c473ecea0 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Mon, 17 May 2021 14:43:21 +0100 Subject: [PATCH] Use namespaced JS imports --- extensions/markdown/js/src/forum/components/MarkdownButton.js | 4 ++-- .../markdown/js/src/forum/components/MarkdownToolbar.js | 2 +- extensions/markdown/js/src/forum/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/markdown/js/src/forum/components/MarkdownButton.js b/extensions/markdown/js/src/forum/components/MarkdownButton.js index 0ac984d91..b5bf49b56 100644 --- a/extensions/markdown/js/src/forum/components/MarkdownButton.js +++ b/extensions/markdown/js/src/forum/components/MarkdownButton.js @@ -1,5 +1,5 @@ -import Component from 'flarum/Component'; -import icon from 'flarum/helpers/icon'; +import Component from 'flarum/common/Component'; +import icon from 'flarum/common/helpers/icon'; export default class MarkdownButton extends Component { oncreate(vnode) { diff --git a/extensions/markdown/js/src/forum/components/MarkdownToolbar.js b/extensions/markdown/js/src/forum/components/MarkdownToolbar.js index b63fa7334..cafb55a20 100644 --- a/extensions/markdown/js/src/forum/components/MarkdownToolbar.js +++ b/extensions/markdown/js/src/forum/components/MarkdownToolbar.js @@ -1,4 +1,4 @@ -import Component from 'flarum/Component'; +import Component from 'flarum/common/Component'; export default class MarkdownToolbar extends Component { view(vnode) { diff --git a/extensions/markdown/js/src/forum/index.js b/extensions/markdown/js/src/forum/index.js index 7a1b99423..9645ed645 100644 --- a/extensions/markdown/js/src/forum/index.js +++ b/extensions/markdown/js/src/forum/index.js @@ -8,7 +8,7 @@ */ import { extend } from 'flarum/extend'; -import TextEditor from 'flarum/components/TextEditor'; +import TextEditor from 'flarum/common/components/TextEditor'; import BasicEditorDriver from 'flarum/common/utils/BasicEditorDriver'; import styleSelectedText from 'flarum/common/utils/styleSelectedText';