1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 18:29:23 +00:00

fix translation and warnings

This commit is contained in:
Michael An
2019-05-15 14:56:46 +08:00
parent 7adccf7ee0
commit 93a99421bc
17 changed files with 26 additions and 27 deletions

View File

@@ -40,7 +40,7 @@ class CDOCEditor extends React.Component {
constructor(props) {
super(props);
this.collabServer = seafileCollabServer ? seafileCollabServer : null;
this.richEditorUtils = new RichEditorUtils(editorUtilities, this)
this.richEditorUtils = new RichEditorUtils(editorUtilities, this);
this.state = {
value: Value.create({}),
collabUsers: userInfo ?
@@ -57,7 +57,7 @@ class CDOCEditor extends React.Component {
contentChanged: false,
showShareLinkDialog: false,
isShowHistory: false,
}
};
if (this.state.collabServer) {
const socket = io(this.state.collabServer);
@@ -262,11 +262,11 @@ class CDOCEditor extends React.Component {
/>
}
</React.Fragment>
)
);
}
}
const TranslatedCDOCEditor = translate('translations')(CDOCEditor)
const TranslatedCDOCEditor = translate('translations')(CDOCEditor);
ReactDOM.render(
<I18nextProvider i18n={i18n} initialLanguage={lang} >