mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
update markdown-editor
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
// Import React!
|
||||
import React from 'react';
|
||||
import React, { Suspense } from 'react';
|
||||
import ReactDom from 'react-dom';
|
||||
import { I18nextProvider } from 'react-i18next';
|
||||
import i18n from './i18n-seafile-editor';
|
||||
import i18n from './_i18n/i18n-seafile-editor';
|
||||
import MarkdownEditor from './pages/markdown-editor';
|
||||
import Loading from './components/loading';
|
||||
|
||||
import './index.css';
|
||||
|
||||
ReactDom.render(
|
||||
<I18nextProvider i18n={ i18n } >
|
||||
<MarkdownEditor />
|
||||
<Suspense fallback={<Loading />}>
|
||||
<MarkdownEditor />
|
||||
</Suspense>
|
||||
</I18nextProvider>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
|
Reference in New Issue
Block a user