FullTextSearchManagement.jsx 1013 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import React, { Fragment } from 'react';
  2. import PropTypes from 'prop-types';
  3. import { withTranslation } from 'react-i18next';
  4. import { createSubscribedElement } from '../UnstatedUtils';
  5. import AppContainer from '../../services/AppContainer';
  6. import { toastSuccess, toastError } from '../../util/apiNotification';
  7. import RebuildIndex from './FullTextSearchManagement/RebuildIndex';
  8. class FullTextSearchManagement extends React.Component {
  9. render() {
  10. const { t } = this.props;
  11. return (
  12. <Fragment>
  13. <h2> { t('full_text_search_management.elasticsearch_management') } </h2>
  14. <RebuildIndex />
  15. </Fragment>
  16. );
  17. }
  18. }
  19. const FullTextSearchManagementWrapper = (props) => {
  20. return createSubscribedElement(FullTextSearchManagement, props, [AppContainer]);
  21. };
  22. FullTextSearchManagement.propTypes = {
  23. t: PropTypes.func.isRequired, // i18next
  24. appContainer: PropTypes.instanceOf(AppContainer).isRequired,
  25. };
  26. export default withTranslation()(FullTextSearchManagementWrapper);