AppContainer.tsx 477 B

1234567891011121314151617
  1. import { connect } from 'react-redux';
  2. import {
  3. fetchClustersList,
  4. } from 'redux/reducers/clusters/thunks';
  5. import App from './App';
  6. import { getIsClusterListFetched } from 'redux/reducers/clusters/selectors';
  7. import { RootState } from 'types';
  8. const mapStateToProps = (state: RootState) => ({
  9. isClusterListFetched: getIsClusterListFetched(state),
  10. });
  11. const mapDispatchToProps = {
  12. fetchClustersList,
  13. }
  14. export default connect(mapStateToProps, mapDispatchToProps)(App);