//@flow

import { bindActionCreators } from "redux";
import { connect } from "react-redux";
import * as actionCreators from "./data/actions/actionCreators";
import insertGlobalStyles from "./global/style/globalStyles";

import { Main } from "./scenes/Main";

function mapStateToProps(): {} {
  return {};
}

export function mapDispatchToProps(dispatch: {}) {
  return bindActionCreators(actionCreators, dispatch);
}

insertGlobalStyles();

export default connect(mapStateToProps, mapDispatchToProps)(Main);

//@flow

import { bindActionCreators } from "redux";
import { connect } from "react-redux";
import * as actionCreators from "./data/actions/actionCreators";

import { Main } from "./scenes/Main";

function mapStateToProps(state: { cards: {}[] }): {} {
  return { cards: state.cards };
}

export function mapDispatchToProps(dispatch: {}) {
  return bindActionCreators(actionCreators, dispatch);
}

export default connect(mapStateToProps, mapDispatchToProps)(Main);

Remove global styles and add some dummy state (cards)
Remove global styles and add some dummy state (cards)

