Users.jsx 973 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import React, { Fragment } from 'react';
  2. import PropTypes from 'prop-types';
  3. import PaginationWrapper from '../../PaginationWrapper';
  4. import TableUserList from './TableUserList';
  5. import AppContainer from '../../../services/AppContainer';
  6. import { createSubscribedElement } from '../../UnstatedUtils';
  7. class UserPage extends React.Component {
  8. constructor(props) {
  9. super();
  10. }
  11. render() {
  12. return (
  13. <Fragment>
  14. <TableUserList />
  15. <PaginationWrapper
  16. activePage={this.state.activePage}
  17. changePage={this.handlePage}
  18. totalItemsCount={this.state.totalUserGroups}
  19. pagingLimit={this.state.pagingLimit}
  20. >
  21. </PaginationWrapper>
  22. </Fragment>
  23. );
  24. }
  25. }
  26. const UserPageWrapper = (props) => {
  27. return createSubscribedElement(UserPage, props, [AppContainer]);
  28. };
  29. UserPage.propTypes = {
  30. appContainer: PropTypes.instanceOf(AppContainer).isRequired,
  31. };
  32. export default UserPageWrapper;