1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

update terms and condition

This commit is contained in:
杨顺强
2023-12-08 15:19:00 +08:00
parent 58c8013360
commit bb5ce5e233
2 changed files with 10 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ class TermsEditorDialog extends React.Component {
this.props.onCloseEditorDialog();
};
onValueChanged = () => {
onContentChanged = () => {
return this.setState({isValueChanged: true});
};
@@ -68,7 +68,7 @@ class TermsEditorDialog extends React.Component {
<SimpleEditor
ref={this.editorRef}
value={content || ''}
onValueChanged={this.onValueChanged}
onContentChanged={this.onContentChanged}
/>
</ModalBody>
</Modal>

View File

@@ -3,8 +3,10 @@ import ReactDom from 'react-dom';
import MediaQuery from 'react-responsive';
import { Modal } from 'reactstrap';
import { Router } from '@gatsbyjs/reach-router';
import { I18nextProvider } from 'react-i18next';
import { siteRoot } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import i18n from '../../_i18n/i18n-seafile-editor';
import SidePanel from './side-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')
);