ListContainer.tsx 530 B

12345678910111213141516171819
  1. import { connect } from 'react-redux';
  2. import { RootState } from 'redux/interfaces';
  3. import { fetchSchemasByClusterName } from 'redux/actions';
  4. import {
  5. getIsSchemaListFetching,
  6. getSchemaList,
  7. } from 'redux/reducers/schemas/selectors';
  8. import List from './List';
  9. const mapStateToProps = (state: RootState) => ({
  10. isFetching: getIsSchemaListFetching(state),
  11. schemas: getSchemaList(state),
  12. });
  13. const mapDispatchToProps = {
  14. fetchSchemasByClusterName,
  15. };
  16. export default connect(mapStateToProps, mapDispatchToProps)(List);