mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 05:39:59 +00:00
update terms and condition
This commit is contained in:
@@ -38,7 +38,7 @@ class TermsEditorDialog extends React.Component {
|
|||||||
this.props.onCloseEditorDialog();
|
this.props.onCloseEditorDialog();
|
||||||
};
|
};
|
||||||
|
|
||||||
onValueChanged = () => {
|
onContentChanged = () => {
|
||||||
return this.setState({isValueChanged: true});
|
return this.setState({isValueChanged: true});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ class TermsEditorDialog extends React.Component {
|
|||||||
<SimpleEditor
|
<SimpleEditor
|
||||||
ref={this.editorRef}
|
ref={this.editorRef}
|
||||||
value={content || ''}
|
value={content || ''}
|
||||||
onValueChanged={this.onValueChanged}
|
onContentChanged={this.onContentChanged}
|
||||||
/>
|
/>
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
@@ -3,8 +3,10 @@ import ReactDom from 'react-dom';
|
|||||||
import MediaQuery from 'react-responsive';
|
import MediaQuery from 'react-responsive';
|
||||||
import { Modal } from 'reactstrap';
|
import { Modal } from 'reactstrap';
|
||||||
import { Router } from '@gatsbyjs/reach-router';
|
import { Router } from '@gatsbyjs/reach-router';
|
||||||
|
import { I18nextProvider } from 'react-i18next';
|
||||||
import { siteRoot } from '../../utils/constants';
|
import { siteRoot } from '../../utils/constants';
|
||||||
import { Utils } from '../../utils/utils';
|
import { Utils } from '../../utils/utils';
|
||||||
|
import i18n from '../../_i18n/i18n-seafile-editor';
|
||||||
|
|
||||||
import SidePanel from './side-panel';
|
import SidePanel from './side-panel';
|
||||||
import MainPanel from './main-panel';
|
import MainPanel from './main-panel';
|
||||||
@@ -292,4 +294,9 @@ class SysAdmin extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ReactDom.render(<SysAdmin />, document.getElementById('wrapper'));
|
ReactDom.render(
|
||||||
|
<I18nextProvider value={i18n}>
|
||||||
|
<SysAdmin />
|
||||||
|
</I18nextProvider>,
|
||||||
|
document.getElementById('wrapper')
|
||||||
|
);
|
||||||
|
Reference in New Issue
Block a user